编程小白,keil中出现这几个错应该怎么改 求大神指点一下?
#include<reg51.h>sbitRS=P2^3;sbitRW=P2^2;sbitE=P2^1;#defineDATAPORTP0unsignedcharcode...
#include<reg51.h>
sbit RS=P2^3;
sbit RW=P2^2;
sbit E=P2^1;
#define DATAPORTP0
unsigned char code string1[]={"MCU-QQ:173885525"};
unsigned char code string2[]={"Glad to see you!"};
void delayMS(unsigned int b)
{ unsigned char a=200;
for(;b>0;b--)
{ while(--a);
a=200;
}
}
void LCDSTA(unsiged char flag)
{ while(1)
{ RS=0;
RW=1;
delayMS(5);
E=1;
delayMS(10);
flag=DATAPORT;
E=0;
flag=flag&0x80;
if(flag==0x00)
{ break;
}
}
} 展开
sbit RS=P2^3;
sbit RW=P2^2;
sbit E=P2^1;
#define DATAPORTP0
unsigned char code string1[]={"MCU-QQ:173885525"};
unsigned char code string2[]={"Glad to see you!"};
void delayMS(unsigned int b)
{ unsigned char a=200;
for(;b>0;b--)
{ while(--a);
a=200;
}
}
void LCDSTA(unsiged char flag)
{ while(1)
{ RS=0;
RW=1;
delayMS(5);
E=1;
delayMS(10);
flag=DATAPORT;
E=0;
flag=flag&0x80;
if(flag==0x00)
{ break;
}
}
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询