#include <reg52.h>
#include <function.h>//详见第六章第8讲
#include <lcd.h>
void
main()
{
char
x;
u8 str1[] =
"Good Good Study"
;
u8 str2[] =
"Day Day Up!"
;
InitLcd1602();
while
(1)
{
LcdSetCursor(0,0);
LcdWriteDat(87);
delay_ms(2000);
LcdSetCursor(0,1);
LcdWriteDat(
'X'
);
delay_ms(2000);
LcdFullClear();
delay_ms(2000);
LcdShowStr(1, 0, str1);
LcdShowStr(3, 1, str2);
delay_ms(2000);
LcdFullClear();
delay_ms(2000);
LcdShowStr_len(0, 0,
"CALL TO 10086"
, 7);
LcdShowStr_len(0, 1, str1, 11);
delay_ms(2000);
for
(x=10;x>=0;x--)
{
LcdAreaClear(x, 1, 1);
delay_ms(1000);
}
for
(x=6;x>=0;x--)
{
LcdAreaClear(x, 0, 1);
delay_ms(1000);
}
}
}