📄 lcd1602_alexi_1.c
字号:
#include<reg52.h>
#include"LCD1602_Alexi.H"
unsigned char code tab1[]={"HI ^_^ HI"};
unsigned char code tab2[]={"LCD_Test......."};
void delays(unsigned char n)
{
unsigned char i;
while(n--)
{
for(i=4;i>0;i--)
delayms(200);
}
}
void main(void)
{
LCD_Init();
Prints(3,0,tab1);
delays(1);
Prints(0,1,tab2);
delays(1);
Prints(4,1,"Success! ");
delays(1);
LCD_Clear();//清屏
Prints(0,0,"Congratulations!");
delays(1);
Prints(0,1,"You are The Best");
delays(1);
Prints(0,0," ");
Prints(6,0,"^_^");
delays(1);
Prints(0,1," ");
Prints(0,1,"Believe Yourself");
delays(1);
Prints(0,1," ");
Prints(0,1,"Come on! Alexi08");
delays(1);
Prints(0,1," ");
Prints(0,1,"And I always ...");
delays(1);
Prints(0,1," ");
Prints(0,1,"Trust you! LOVE!");
delays(1);
Prints(6,1,"^_^ ");
while(1);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -