freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

智能除濕器控制系統(tǒng)的設(shè)計畢業(yè)論文-資料下載頁

2025-06-19 13:32本頁面
  

【正文】 se HUMI : error+=s_write_byte(MEASURE_HUMI)。 break。 default : break。 } for (i=0。i65535。i++) if(DATA==0) break。 //wait until sensor has finished the measurement if(DATA) error+=1。 // or timeout (~2 sec.) is reached *(p_value) =s_read_byte(ACK)。 //read the first byte (MSB) *(p_value+1)=s_read_byte(ACK)。 //read the second byte (LSB) *p_checksum =s_read_byte(noACK)。 //read checksum return error。 } /***************按鍵處理模塊**************/uint flag=60。//定義上限值,初始值設(shè)定為60,設(shè)置為全局變量uchar key。sbit ADDE=P3^6。 //+sbit SUBK=P3^7。 //void keyscan(){ ADDE=1。SUBK=1。key=ADDEamp。amp。SUBK。 if(key==0) { delay_n10us(100)。 if(key==0) { if(ADDE==0) { {if(flag100) {flag++。} else {flag=0。} } while(!ADDE)。 } if(SUBK==0) { if(flag0) {flag。} else {flag=99。} while(!SUBK)。 //鎖定狀態(tài) } } } }sbit led=P3^4。 //指示燈sbit beep=P2^6。 //蜂鳴器/*********************************主函數(shù)****************************/void main(void){ value humi_val,temp_val。 uint shijishidu。 //實際濕度 unsigned char error,checksum。 uint wendu,shidu。keyscan。 LCD_init()。s_connectionreset()。 LCD_disp_str(8,2,T)。LCD_disp_str(0,2,R)。led=1。 LCD_disp_str(0,1, shidu: %)。/***********************初始化濕度顯示區(qū)***********************/ LCD_disp_str(1,2, . %)。 delay_n10us(20000)。 // while(1) { error=0。 error+=s_measure((unsigned char*) amp。,amp。checksum,HUMI)。 //measure humidity error+=s_measure((unsigned char*) amp。,amp。checksum,TEMP)。 //measure temperature if(error!=0) { s_connectionreset()。 } //in case of an error: connection reset else { keyscan()。 LCD_disp_char(8,1,(flag/10)+39。039。)。 LCD_disp_char(9,1,(flag%10)+39。039。)。 =(float)。 //converts integer to float =(float)。 //converts integer to float calc_sht11(amp。,amp。)。 //calculate humidity, temperaturewendu=10*。 LCD_disp_char(9,2,0x3a)。 LCD_disp_char(10,2,(wendu%1000)/100+39。039。)。 //顯示溫度十位 LCD_disp_char(11,2,(wendu%100)/10+39。039。)。 //顯示溫度個位 LCD_disp_char(12,2,0x2e)。 //顯示溫度小數(shù)點 LCD_disp_char(13,2,(wendu%10)+39。039。)。 //顯示溫度小數(shù)點后第一位 LCD_disp_char(14,2,0xdf)。 LCD_disp_char(15,2,0x43)。 shidu=10*。 LCD_disp_char(1,2,0x3a)。 LCD_disp_char(2,2,(shidu%1000)/100+39。039。)。 //顯示濕度十位 LCD_disp_char(3,2,(shidu%100)/10+39。039。)。 //顯示濕度個位 LCD_disp_char(5,2,(shidu%10)+39。039。)。 //顯示濕度小數(shù)點后第一位/****************報警部分************************/ shijishidu=(shidu%1000)/10+(shidu%100)/10。 //實際的濕度值; if(flag=shijishidu) {led=1。beep=1。} if(flagshijishidu) {led=0。beep=0。} } delay_n10us(80000)。 // } }23
點擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1