keil编程时,它提示 A.C(9): error C202: 'Power': undefined identifier;A.C(10): error C202: 'lcden': u 10
keil编程时,它提示A.C(9):errorC202:'Power':undefinedidentifier;A.C(10):errorC202:'lcden':und...
keil编程时,它提示 A.C(9): error C202: 'Power': undefined identifier;A.C(10): error C202: 'lcden': undefined identifier;求高手指教 下面是一段源程序:
#include <reg52.h>
#define uchar unsigned char
#define uint unsigned int
//***************************************************************
//***************************************************************
void init()
{
power=0; //power is ok
lcden=0; //low enble
write_com(0x38);
write_com(0x0c); //display open ,cursor off,blink off
write_com(0x06); //pointer auto add 1
write_com(0x01); //clear screen and pointer
write_com(0x80);
TMOD=0x10; //time1,16 bit timmer
EA=0; //open entire interrupt
Trig=0;
Echo=0;
delay(1);
}
//*************************************************************** 展开
#include <reg52.h>
#define uchar unsigned char
#define uint unsigned int
//***************************************************************
//***************************************************************
void init()
{
power=0; //power is ok
lcden=0; //low enble
write_com(0x38);
write_com(0x0c); //display open ,cursor off,blink off
write_com(0x06); //pointer auto add 1
write_com(0x01); //clear screen and pointer
write_com(0x80);
TMOD=0x10; //time1,16 bit timmer
EA=0; //open entire interrupt
Trig=0;
Echo=0;
delay(1);
}
//*************************************************************** 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询