本帖最后由 2248373991 于 2022-3-23 11:00 编辑 AIDEF 发表于 2022-3-22 22:05 |
AIDEF 发表于 2022-3-22 22:05 一直保持这个界面,按什么键都退不出来 |
把设置这段程序该这样试试 if(SetKey==0) //设置键 { delay(10); //消抖延时 if(SetKey==0) { while(1){ display5(); //显示Current T= display6(); //显示上下限 Read_Temperature(); //读取温度值 display7(); //显示温度 display8(); //显示上下限温度 SetFun(); //指针> if(SetKey==0) //再次点击设置键 { delay(10); //消抖延时 if(SetKey==0) break();//跳出while; } } |
把设置这段程序改这样试试; if(SetKey==0) //设置键 { delay(10); //消抖延时 if(SetKey==0) { while(1){ display5(); //显示Current T= display6(); //显示上下限 Read_Temperature(); //读取温度值 display7(); //显示温度 display8(); //显示上下限温度 SetFun(); //指针> if(SetKey==0) //再次点击设置键 { delay(10); //消抖延时 if(SetKey==0) break();//跳出while; } } |