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廚師狀態重新開始,當按洗滌或者脫水增加按鍵,又可以從初始設置的時間基礎上重新手動增加時間
|