lcd1602.c
来自「LCD1602显示实验 程序源自<例说8051>,其实验图不能用.」· C语言 代码 · 共 29 行
C
29 行
#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 + =
减小字号Ctrl + -
显示快捷键?