烧写后蜂鸣器一直响,数码管乱码,错哪里了求高手
时间:10-02
整理:3721RD
点击:
主程序:
void main()
{
dula=0;
wela=0;
while(1)
{
tempchange();
dis_temp(get_temp);
deal(temp);
dis_temp(get_temp);
if(key1==0)
{
delay(1);
if(key1==0)
{
beep=0;
delay(10000);
beep=1;
delay(200);
}
}
if(key2==1)
{
delay(1);
if(key2==1);
{
beep=0;
delay(10000);
beep=1;
delay(200);
}
}
}
}