?? 330_wind.c
字號:
extern struct keyboard out ;
extern struct screen setdata ;
void enableWDT(void) ;
void disableWDT(void) ;
void refreshWDT(void) ;
void coolauto(void)
{//static unsigned char history ;
if (out.automode == 1){
if((out.temp+1) < setdata.tempnum) //設置溫度+1小于室內溫度
{out.cool = 1; //制冷有效;
out.heat = 0; //制熱無效;
/*
if(out.wind == 0){
top = 0 ;
battom = 1 ;
del1s () ;
del1s () ;
top = 1 ;
del1s () ;
}
*/
if (out.wind == 1){
top = 1 ;
del1s () ;
del1s () ;
del1s () ;
top = 0 ;
del1s () ;
}
if (out.wind == 5){
top = 1 ;
del1s () ;
del1s () ;
del1s () ;
top = 0 ;
del1s () ;
}
if (out.wind == 9){
top = 1 ;
del1s () ;
del1s () ;
del1s () ;
top = 0 ;
del1s () ;
}
/*
if (out.wind == 10){
battom = 1 ;
battom_size = 1 ;
while (battom_size != 0 ){
;
}
battom = 0 ;
del1s () ;
}
*/
if(out.wind < 10){
out.wind++;
}
else {
out.wind = 10;
}
}
if((out.temp-1)>setdata.tempnum) //設置溫度-1大于室內溫度;
{out.cool=0; //制冷無效;
out.heat=1; //制熱有效;
/*
if(out.wind == 10){
battom = 0 ;
del1s () ;
del1s () ;
battom = 1 ;
del1s () ;
}
*/
if (out.wind == 9){
del1s () ;
del1s () ;
del1s () ;
battom = 0 ;
del1s () ;
}
if (out.wind == 5){
battom = 1 ;
del1s () ;
del1s () ;
del1s () ;
battom = 0 ;
del1s () ;
}
if (out.wind == 1){
battom = 1 ;
battom_size = 1 ;
del1s () ;
del1s () ;
del1s () ;
battom = 0 ;
del1s () ;
}
if(out.wind > 0){
out.wind-- ;
}
else {
out.wind = 0 ;
}
}
}
}
void enableWDT(void){
pca0md = 0x00 ;
pca0cpl2 = 0xff ;
pca0md |= 0x40 ;
}
void disableWDT(void){
pca0md &= ~0x40 ;
}
void refreshWDT(void){
pca0cph2 = 0x00 ;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -