#include<reg51.h>
#define uchar8 unsigned char
#define uint16 unsigned int
uchar8 code wendu1[]={0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39}; //0 到 9 的代码
uchar8 code wendu2[]="tempreture";
uchar8 code wendu3[]="^c" ;
sbit rs = P3^0; //1602 数据/命令
sbit rw = P3^1; // 读/写
sbit en = P3^2; // 使能端
sbit DQ = P3^7;
uint u_tempt;
float f_tempt
void delay (uint x)
uint i,j;
for(i=0;i<x;i++)
for(j=0;j<130;j++);
}
void write_com(uchar8 com)
标红的地方一直显示missing ';' before’u_tempt‘,求大佬指教要怎么该,在线等挺急的
|