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

正文內(nèi)容

基于lcd1602電子時(shí)鐘課程設(shè)計(jì)報(bào)告-資料下載頁(yè)

2025-06-18 17:06本頁(yè)面
  

【正文】 temp=DQ。for(time=0。time200。time++)。return temp。}/**************************讀DS18B20**********************/ unsigned char ReadDS18B20(void) { unsigned char i。unsigned char dat。for(i=0。i8。i++){DQ=1。_nop_()。DQ=0。_nop_()。DQ=1。for(time=0。time2。time++)。dat=1。if(DQ==1)dat=dat|0x80。elsedat=dat|0x00。 34for(time=0。time10。time++)。}return dat。 } /*********************向DS18B20寫(xiě)數(shù)據(jù)**************************/ void WriteDS18B20(unsigned char date) { unsigned char i。for(i=0。i8。i++){DQ=1。_nop_()。DQ=0。DQ=dateamp。0x01。for(time=0。time10。time++)。DQ=1。for(time=0。time1。time++)。date=1。}for(time=0。time4。time++)。 }/*******************為讀取溫度做好準(zhǔn)備************************/void ReadyreadDS18B20(void){IntDS18B20()。WriteDS18B20(0XCC)。WriteDS18B20(0X44)。delay1ms(200)。IntDS18B20()。WriteDS18B20(0XCC)。WriteDS18B20(0XBE)。}/*************在1602液晶上顯示相關(guān)信息模塊**********************//****************當(dāng)未檢測(cè)到DS18B20時(shí)顯示信息模塊****************/ void Display_Error(void) { unsigned char i=0。Write_Address(0x00)。while(displayerror[i]!=39。\039。){Write_Date(displayerror[i])。i++。delay1ms(100)。 35}delay1ms(5)。i=0。Write_Address(0x40)。while(displayerror1[i]!=39。\039。){Write_Date(displayerror1[i])。i++。delay1ms(100)。}delay1ms(3000) 。 } /*************溫度顯示模塊****************/ void Display_Explain(void) { unsigned char i=0。Write_Address(0x00)。delay1ms(5)。while(displayexplain[i]!=39。\039。){Write_Date(displayexplain[i])。i++。delay1ms(5)。}i=0。Write_Address(0x40)。while(displaypart1[i]!=39。\039。){Write_Date(displaypart1[i])。i++。delay1ms(5)。}i=0。Write_Address(0x4C)。while(displaypart2[i]!=39。\039。){Write_Date(displaypart2[i])。i++。delay1ms(5)。}Write_Address(0x49)。Write_Date(39。.39。)。delay1ms(5)。 } /*********************顯示溫度整數(shù)部分*************************/ 36 void Display_Integer(unsigned char x) { unsigned char i,j,k。i=x/100。j=x%100/10。k=x%10。if(i!=0){Write_Address(0x46)。{ if(flag==1) Write_Date(39。39。)。else Write_Date(39。 39。)。}Write_Date(digit[i])。Write_Date(digit[j])。Write_Date(digit[k])。delay1ms(50) 。}if(i==0amp。amp。j!=0){ Write_Address(0x46)。Write_Date(39。 39。)。{ if(flag==1) Write_Date(39。39。)。else Write_Date(39。 39。)。}Write_Date(digit[j])。Write_Date(digit[k])。 delay1ms(50) 。}if(i==0amp。amp。j==0){Write_Address(0x46)。 Write_Date(39。 39。)。Write_Date(39。 39。)。{ if(flag==1) Write_Date(39。39。)。else Write_Date(39。 39。)。}Write_Date(digit[k])。delay1ms(50) 。} } /************顯示溫度小數(shù)部分*********************/ void Display_Decimal(unsigned char x) { Write_Address(0x4A)。delay1ms(5)。Write_Date(39。.39。)。 37Write_Date(digit[x])。delay1ms(50)。 }void displayovert(void){unsigned char i。Write_(0x01)。delay1ms(10)。Write_Address(0x03)。delay1ms(10)。Write_Date(39。W39。)。 Write_Date(39。A39。)。Write_Date(39。R39。)。Write_Date(39。N39。)。Write_Date(39。I39。)。Write_Date(39。N39。)。Write_Date(39。G39。)。Write_Date(39。!39。)。Write_Address(0x40)。while(overtemperature[i]!=39。\039。){Write_Date(overtemperature[i])。i++。delay1ms(10)。}} /*******************溫度主函數(shù)********************/ void Temperature(void) { unsigned char i。delay1ms(5)。if(IntDS18B20()!=0)Display_Error()。else{delay1ms(1)。Write_(0x01)。delay1ms(5)。Display_Explain()。for(length=2。length0。length){for(i=0。i6。i++){flag=0。ReadyreadDS18B20()。TL=ReadDS18B20()。 38TH=ReadDS18B20()。if((THamp。0XF8)!=0X00){flag=1。TL=~TL。TH=~TH。TL+=1。if(TL255) TH+=1。TN=TH*16+TL/16。TD=(TL%16)*10/16。}TN=TH*16+TL/16。TD=(TL%16)*10/16。Display_Integer(TN)。Display_Decimal(TD)。delay1ms(10)。}if(tempswitch==1){if(TN=Maxtemp) {Write_Address(0x03)。delay1ms(5)。displayovert()。while(1){baojing()。if(CANL==0) {Write_(0x01)。delay1ms(5)。break。}}}}if(CANL==0) break。}} } void tempset(void) { if(ADD==0) {delay1ms(10)。 39if(ADD==0) {Maxtemp++。while(ADD==0)。}}if(RED==0) {delay1ms(10)。if(RED==0) {Maxtemp。while(RED==0)。}} } void Maxtempset(void) //高溫報(bào)警設(shè)置 {Write_(0x01)。delay1ms(10)。Write_Address(0x03)。delay1ms(10)。Write_Date(39。T39。)。Write_Date(39。E39。)。Write_Date(39。M39。)。Write_Date(39。P39。)。Write_Address(0x09)。Write_Date(39。S39。)。Write_Date(39。E39。)。Write_Date(39。T39。)。Write_Address(0x40)。Write_Date(39。M39。)。Write_Date(39。A39。)。Write_Date(39。X39。)。Write_Date(39。:39。)。while(1){if(SET==0){delay1ms(20)。if(SET==0){Write_Address(0x4e)。Write_(0x0f)。while(1) 40{if(ADD==0){delay1ms(20)。if(ADD==0){Write_Address(0x4b)。delay1ms(5)。Write_Date(39。O39。)。Write_Date(39。N39。)。Write_Date(39。 39。)。tempswitch=1。}}if(RED==0){delay1ms(20)。if(RED==0){Write_Address(0x4b)。Write_Date(39。O39。)。Write_Date(39。F39。)。Write_Date(39。F39。)。tempswitch=0。}}if(CANL==0) {delay1ms(500)。break。}}}}if(tempswitch==1){Write_Address(0x4b)。Write_Date(39。O39。)。Write_Date(39。N39。)。Write_Date(39。 39。)。Write_Address(0x45)。Write_(0x0e)。tempset()。displaymaxt(Maxtemp)。if(CANL==0) 41{Write_(0x01)。displaymainpart()。break。}}if(tempswitch==0){Write_(0x0c)。Write_Address(0x4b)。Write_Date(39。O39。)。Write_Date(39。F39。)。Write_Date(39。F39。)。}if(CANL==0) {Write_(0x01)。displaymainpart()。break。}} } void alarmswitchset(void) { while(1){if(ADD==0){delay1ms(100)。if(ADD==0){alarmmode=1。Write_Address(0x4c)。Write_Date(39。O39。)。Write_Date(39。N39。)。Write_Date(39。 39。)。}}if(RED==0){alarmmode=0。Write_Address(0x4c)。Write_Date(39。O39。)。Write_Date(39。F39。)。Write_Date(39。F39。)。 42}if(
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1