【文件属性】:
文件名称:显示屏lcd1602
文件大小:148KB
文件格式:DSN
更新时间:2016-05-26 01:19:42
显示屏lcd
字符液晶显示器1602仿真
#include
#include "LCD1602.h"
unsigned char TempBuffer[10];
void IntToStr(unsigned int t, unsigned char *str, unsigned char n)
{
unsigned char a[5]; char i, j;
a[0]=(t/10000); //取得整数值到数组
a[1]=(t/1000);
a[2]=(t/100);
a[3]=(t/10);
a[4]=(t/1);
for(i=0; i<5; i++) //转成ASCII码
a[i]=a[i]+'0';
for(i=0; a[i]=='0' && i<=3; i++);
for(j=5-n; j