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

正文內(nèi)容

模擬路燈控制系統(tǒng)設計畢業(yè)論文-資料下載頁

2025-06-26 05:15本頁面
  

【正文】 x30)。 LCD_Write(1,flag_r%10+0x30)。 }}void timer0() interrupt 1 /*定時器中斷50ms*/{ TH0=(6553650000)/256。 TL0=(6553650000)%256。 if(temp++ 18) { temp = 0。 if(sec++ 58) { sec = 0。 if(min++ 58) { min = 0。 if(hour++ 22) hour = 0。 } } } display()。}void init(void) /*定時器初始化函數(shù)*/{ TMOD = 0x01。 //T0 TH0 = (6553650000)/256。 TL0 = (6553650000)%256。 EA = 1。 ET0 = 1。 TR0 = 1。 LCD_Initial()。 GotoXY(0,0)。 Print(NOW:)。 GotoXY(0,1)。 Print(error:)。 }void display(void){ unsigned char t=0,t1=0,t2=0。 GotoXY(4,0)。 LCD_Write(1,hour/10+0x30)。 LCD_Write(1,hour%10+0x30)。 LCD_Write(1,39。:39。)。 LCD_Write(1,min/10+0x30)。 LCD_Write(1,min%10+0x30)。 LCD_Write(1,39。:39。)。 LCD_Write(1,sec/10+0x30)。 LCD_Write(1,sec%10+0x30)。 if(keyadd==0) { if(signal1==0) t=0。 else t=1。 if(signal2==0) t1=0。 else t1=1。 if(signal3==0) t2=0。 else t2=1。 GotoXY(13,1)。 LCD_Write(1,t+0x30)。 LCD_Write(1,t1+0x30)。 LCD_Write(1,t2+0x30)。 } else if(keysub==0) { if(ligres==0) t=0。 else t=1。 if(ligres1==0) t1=0。 else t1=1。 if(ligres2==0) t2=0。 else t2=1。 GotoXY(13,1)。 LCD_Write(1,t+0x30)。 LCD_Write(1,t1+0x30)。 LCD_Write(1,t2+0x30)。 } else { GotoXY(13,1)。 Print( )。 }}void settime(void){ unsigned char num=0。 if(keyset==0) { while(keyset==0)。 delay(9000)。 GotoXY(15,0)。 LCD_Write(1,39。m39。)。 while(num==0) //set min { if(keyadd==0) {while(keyadd==0)。if(min59) min++。} else if(keysub==0) {while(keysub==0)。if(min0) min。} else if(keyset==0) {while(keyset==0)。delay(9000)。num++。} } GotoXY(15,0)。 LCD_Write(1,39。h39。)。 while(num==1) //set hour { if(keyadd==0) {while(keyadd==0)。if(hour23) hour++。} else if(keysub==0) {while(keysub==0)。if(hour0) hour。} else if(keyset==0) {while(keyset==0)。num++。} } GotoXY(15,0)。 Print( )。 }}void control(void){ if(ligres==0) //如果光線暗 { if(light1==0 amp。amp。 light2==0) //判斷左右方向 { if(signal1==0) flag_l=1。 else if(signal3==0) flag_r=1。 } if(flag_l==1) //如果人從左邊來 { if(signal1==0) //如果有人 { light1 = 0。 //開燈 light2 = 1。 //關燈 GotoXY(6,1)。 if(ligres1==0) //故障 { beep = 0。 LCD_Write(1,1+0x30)。 } else { LCD_Write(1,39。n39。)。 beep = 1。 } } else if(signal2==0) { light2 = 0。 light1 = 1。 GotoXY(7,1)。 if(ligres2==0) { beep = 0。 LCD_Write(1,2+0x30)。 } else { LCD_Write(1,39。n39。)。 beep = 1。 } } else if(signal3==0) { light2 = 1。 light1 = 1。 flag_l = 0。 flag_r = 0。 } } if(flag_r==1) //如果人從右邊來 { if(signal3==0) //如果有人 { light2 = 0。 //開燈 light1 = 1。 //關燈 GotoXY(6,1)。 if(ligres2==0) //故障 { beep = 0。 LCD_Write(2,1+0x30)。 } else { LCD_Write(1,39。n39。)。 beep = 1。 } } else if(signal2==0) { light1 = 0。 light2 = 1。 GotoXY(7,1)。 if(ligres1==0) { beep = 0。 LCD_Write(1,1+0x30)。 } else { LCD_Write(1,39。n39。)。 beep = 1。 } } else if(signal1==0) { light1 = 1。 light2 = 1。 flag_l = 0。 flag_r = 0。 } } }
點擊復制文檔內(nèi)容
研究報告相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1