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

正文內(nèi)容

華清學(xué)院畢業(yè)設(shè)計(jì)-資料下載頁(yè)

2025-06-23 00:07本頁(yè)面
  

【正文】 nt openminsetconf=0。int closehoursetconf=20。int closeminsetconf=0。/*******************************************************/******************************************************************************************** 函數(shù)名稱(chēng):Delay()* 功 能:軟件延時(shí)* 入口參數(shù):count 延時(shí)參數(shù),值越大,延時(shí)越長(zhǎng)* 出口參數(shù):無(wú)*********************************************************************************************/void Delay(uint16 count){ uint8 i。 while(count != 0) { for(i = 0。 i 125。 i++)。 // 。 表示空語(yǔ)句,CPU空轉(zhuǎn)。 } // i 從0加到125,在12M晶體下CPU大概耗時(shí)1毫秒}//=================================================void motor(bit dir) { if(dir){ P0_0=1。P0_1=0。P0_2=0。P0_3=0。Delay(20)。 P0_0=1。P0_1=1。P0_2=0。P0_3=0。Delay(20)。 P0_0=0。P0_1=1。P0_2=0。P0_3=0。Delay(20)。 P0_0=0。P0_1=1。P0_2=1。P0_3=0。Delay(20)。 P0_0=0。P0_1=0。P0_2=1。P0_3=0。Delay(20)。 P0_0=0。P0_1=0。P0_2=1。P0_3=1。Delay(20)。 P0_0=0。P0_1=0。P0_2=0。P0_3=1。Delay(20)。 P0_0=1。P0_1=0。P0_2=0。P0_3=1。Delay(20)。 P0_0=1。P0_1=0。P0_2=0。P0_3=0。Delay(20)。 } else{ P0_0=1。P0_1=0。P0_2=0。P0_3=0。 Delay(20)。 P0_0=1。P0_1=0。P0_2=0。P0_3=1。 Delay(20)。 P0_0=0。P0_1=0。P0_2=0。P0_3=1。 Delay(20)。 P0_0=0。P0_1=0。P0_2=1。P0_3=1。 Delay(20)。 P0_0=0。P0_1=0。P0_2=1。P0_3=0。 Delay(20)。 P0_0=0。P0_1=1。P0_2=1。P0_3=0。 Delay(20)。 P0_0=0。P0_1=1。P0_2=0。P0_3=0。 Delay(20)。 P0_0=1。P0_1=1。P0_2=0。P0_3=0。 Delay(20)。 P0_0=1。P0_1=0。P0_2=0。P0_3=0。 Delay(20)。 } }void key(){ P1=0XFF。 if(P1==0xfe||flagk)//p10對(duì)應(yīng)開(kāi)窗簾 { flagk=1。 if(P1==0xff){ flagk=0。 for(。posi=plusnum。posi++) { if(!flagstop) motor(1)。 else break。 } } flagstop=0。 } if(P1==0xfd||flagg)//p11對(duì)應(yīng)關(guān)床簾 { flagg=1。 if(P1==0xff){ flagg=0。 P0_0=0。P0_1=0。P0_2=0。P0_3=0。 Delay(10)。 for(。posi=1。posi) {if(!flagstop) motor(0)。 else break。 } flagstop=0。} } }void keyproc(){ if(P1==0xFB||flagset){ flagset=1。 if(P1==0xff){ flagset=0。 if(setnum==0) {disphour=100。openhoursetflag=1。closehoursetflag=0。openminsetflag=0。closeminsetflag=0。 dispmin= openminset。 }//此時(shí)打開(kāi)時(shí)間的小時(shí)位的十位會(huì)出現(xiàn)‘——’,開(kāi)始設(shè)定打開(kāi)時(shí)間的小時(shí) if(setnum==1) {dispmin=100。openhoursetflag=0。closehoursetflag=0。openminsetflag=1。closeminsetflag=0。 disphour=openhourset。 }//此時(shí)打開(kāi)時(shí)間的分鐘位的十位會(huì)出現(xiàn)‘——’開(kāi)始設(shè)定打開(kāi)時(shí)間的分鐘 if(setnum==2) {disphour=100。openhoursetflag=0。closehoursetflag=1。openminsetflag=0。closeminsetflag=0。 dispmin=closeminset。 }//此時(shí)關(guān)閉時(shí)間的小時(shí)位的十位會(huì)出現(xiàn)‘——’,開(kāi)始設(shè)定關(guān)閉時(shí)間的小時(shí) if(setnum==3) {dispmin=100。openhoursetflag=0。closehoursetflag=0。openminsetflag=0。closeminsetflag=1。 disphour=closehourset。 }//此時(shí)關(guān)閉時(shí)間的分鐘位的十位會(huì)出現(xiàn)‘——’開(kāi)始設(shè)定關(guān)閉時(shí)間的分鐘 setnum++。 } } if(P1==0xF7||flagplus){ flagplus=1。 if(P1==0xff){ flagplus=0。 if(openhoursetflag) {openhourset++。 disphour=openhourset。} if(openminsetflag) {openminset++。 dispmin=openminset。} if(closehoursetflag) {closehourset++。 disphour=closehourset。} if(closeminsetflag) {closeminset++。 dispmin=closeminset。} } } if(P1==0xEF||flagminu){ flagminu=1。 if(P1==0xff){ flagminu=0。 if(openhoursetflag) {openhourset。 disphour=openhourset。} if(openminsetflag) {openminset。 dispmin=openminset。} if(closehoursetflag) {closehourset。 disphour=closehourset。} if(closeminsetflag) {closeminset。 dispmin=closeminset。} } } if(P1==0xDF||flagconf){ flagconf=1。 if(P1==0xff){ flagconf=0。 if(openhoursetflag) { disphour=openhourset。} if(openminsetflag) { dispmin=openminset。} if(closehoursetflag) { disphour=closehourset。} if(closeminsetflag) { dispmin=closeminset。} openhoursetconf=openhourset。 openminsetconf=openminset。 closehoursetconf=closehourset。 closeminsetconf=closeminset。 setnum=0。 openhoursetflag=0。closehoursetflag=0。openminsetflag=0。closeminsetflag=0。 } }}void main (void) {Initial_DS1302()。EA=1。 //全局中斷開(kāi)EX0=1。 //外部中斷0開(kāi)IT0=1。 //邊沿觸發(fā),為0則為低電平觸發(fā) DS1302_SetTime(time_set)。TMOD=0x11。ET1=1。 //??T1??TR1=1。 while(1) { DS1302_GetTime(amp。CurrentTime)。 if((==openhoursetconfamp。amp。==openminsetconfamp。amp。==0)) { for(。posi=plusnum。posi++) {if(!flagstop) motor(1)。 else break。} } if(==closehoursetconfamp。amp。==closeminsetconfamp。amp。==0) { for(。posi=1。posi) {if(!flagstop) motor(0)。 else break。} } key()。keyproc()。 }void ISR0_Key() interrupt 0 using 1{ flagstop=1。 P0_0=0。P0_1=0。P0_2=0。P0_3=0。 } void zd3() interrupt 3 { TH1=0xf8。 TL1=0x30。 Display(disphour,dispmin)。 }
點(diǎn)擊復(fù)制文檔內(nèi)容
語(yǔ)文相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1