if(AddWashTime_key== 0) //加洗涤时间按键函数 { Delay(100); if(AddWashTime_key == 0) { while(!AddWashTime_key){Display();} WashTimeCopy += 10; WashTime = WashTimeCopy; WashFrequencyCopy+=1;//洗涤次数 WashFrequency=WashFrequencyCopy; if((WashTime+DehydrationTime+10+WaterLevel*2)>230)WashTime=30,DehydrationTime =30, WashFrequency= 3; AllWashTime=WashTime+DehydrationTime+10+WaterLevel*2; if((WashTime+DehydrationTime+10+WaterLevel*2)<230)AllWashTime=WashTime+DehydrationTime+10+WaterLevel*2;
总共有增加、减少洗涤,脱水功能。这只是其中之一,当总洗衣时间超过230S后,总洗衣时间从 WashTime=30、DehydrationTime =30、WaterLevel*2(进水排水总时间)、报警10S厨师状态重新开始,当按洗涤或者脱水增加按键,又可以从初始设置的时间基础上重新手动增加时间
|