在keilc中写的程序,下到单片机中,无法自加,求大神帮忙
时间:10-02
整理:3721RD
点击:
if(ChooseMode==Set_Level_Value)
{
LCD_write_command(0x01);//清屏
delay(300);
Display_State(0x00,0,"Set The Level");
Display_State(0x06,1,"mm");
while(1)
{
if(KeyScan==ADD)
{
SetLevel=SetLevel+1;
while(KeyScan());
}
if(KeyScan()==MINUS)
{
SetLevel=SetLevel-1;
while(KeyScan());
}
if(KeyScan()==BACK)
{
while(KeyScan());
break;
}
while(KeyScan());
Display_Level(SetLevel);
}
}
{
LCD_write_command(0x01);//清屏
delay(300);
Display_State(0x00,0,"Set The Level");
Display_State(0x06,1,"mm");
while(1)
{
if(KeyScan==ADD)
{
SetLevel=SetLevel+1;
while(KeyScan());
}
if(KeyScan()==MINUS)
{
SetLevel=SetLevel-1;
while(KeyScan());
}
if(KeyScan()==BACK)
{
while(KeyScan());
break;
}
while(KeyScan());
Display_Level(SetLevel);
}
}
if(KeyScan==ADD)少了括号
加里面的KeyScan应该是个函数,少写括号KeyScan()
这个问题尴尬了,,,哈哈。
谢谢哈,问题已解决
谢谢哈,问题已解决