📄 xinhaoyuan.c
字号:
#include <at89x52.h>
#include <lcd1602.h>
#include "control.h"
#include"delay.h"
#define uchar unsigned char
#define uint unsigned int
/*******************************/
void main(void)
{
char i;
uchar number[]="0123456789ABCDEF" ;
uchar disp[]= "XXX channal ";
uchar code satr0[]={"-This is a LCD-!"};
uchar code satr1[]={"-Design by WRS-!"};
delay(500);
InitLcd();
/********闪烁5次***********************/
for(i=0;i<4;i++)
{
WriteCommandLCM(0x01,1);
delay(500);
DisplayListChar(0,0,satr0);
DisplayListChar(0,1,satr1);
delay(500);
i++;
}
WriteCommandLCM(0x01,1);
while(1)
{control();}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -