case 3: //按动3次,shi
Chinese_disp_1(4,0,xtiao);
Chinese_disp_1(4,16,xshi);
if(key4==0)// {
delay(9);//延时,用于消抖动
if(key4==0)//延时后再次确认按键按下
{
buzzer=1;
delay(40);
buzzer=0;//蜂鸣器短鸣
while(!key4); //检 {
write_ds(1,miao);
write_ds(3,fen); //分
write_ds(5,shi); //时
}
}
}
else |