?? iar8-4.c
字號:
#include <iom16.h>
#include<intrinsics.h>
#include "lcd1602_4bit.c"
#define uchar unsigned char
#define uint unsigned int
//---------------------------------
uchar __flash exampl[]="--ATmega16(L)-- Testing...... \n";
//******************************************
void main(void)
{
uchar temp;
Delay_nms(400);
DDRA=0xf0;PORTA=0x00;
DDRB=0xff;PORTB=0x00;
InitLcd();
temp=32;
ePutstr(0,0,exampl);
Delay_nms(3200);
while(1)
{
temp&=0x7f;
if(temp<32)temp=32;
DisplayLine2(temp++);
Delay_nms(400);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -