lcd1602_alexi_1.c

来自「文件夹包含LCD1602的一些经常用到的驱动: ├─★★LCD1602四线驱动」· C语言 代码 · 共 56 行

C
56
字号
#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 + =
减小字号Ctrl + -
显示快捷键?