📄 lcd1602.c
字号:
#include <REGX52.H>
#include "LCD1602.h"
#include "stdio.h"
void Delay1ms(unsigned int count)
{
unsigned int i,j;
for(i=0;i<count;i++)
for(j=0;j<120;j++);
}
main()
{
unsigned int value = 0;
unsigned char buffer[30];
LCD_Initial();
GotoXY(0,0);
Print(" proteus.com.cn");
while(1)
{
GotoXY(0,1);
sprintf(buffer,"%d,0x%04X",value++,value);
Print(buffer);
Delay1ms(200);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -