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

正文內(nèi)容

基于單片機(jī)的十六路搶答器-資料下載頁(yè)

2025-06-06 22:12本頁(yè)面
  

【正文】 (5)。 if(s3==0) { while(!s3)。 disnum=1。 if(disnum==0) disnum=10。 } } }void keyscan(){ P3=0xfe。 //掃描矩陣鍵盤(pán)第一行 temp=P3。 temp=tempamp。0xf0。 if(temp!=0xf0) { delay(5)。 temp=P3。 temp=tempamp。0xf0。 if(temp!=0xf0) { temp=P3。 switch(temp) { case 0xee: key=1。 break。 case 0xde: key=2。 break。 case 0xbe: key=3。 break。 case 0x7e: key=4。 break。 } while(temp!=0xf0) //等待按鍵釋放 { temp=P3。 temp=tempamp。0xf0。 } } } P3=0xfd。 //掃描矩陣鍵盤(pán)第二行 temp=P3。 temp=tempamp。0xf0。 if(temp!=0xf0) { delay(5)。 temp=P3。 temp=tempamp。0xf0。 if(temp!=0xf0) { temp=P3。 switch(temp) { case 0xed: key=5。 break。 case 0xdd: key=6。 break。 case 0xbd: key=7。 break。 case 0x7d: key=8。 break。 } while(temp!=0xf0) { temp=P3。 temp=tempamp。0xf0。 } } } P3=0xfb。 //掃描矩陣鍵盤(pán)第三行 temp=P3。 temp=tempamp。0xf0。 if(temp!=0xf0) { delay(5)。 temp=P3。 temp=tempamp。0xf0。 if(temp!=0xf0) { temp=P3。 switch(temp) { case 0xeb: key=9。 break。 case 0xdb: key=10。 break。 case 0xbb: key=11。 break。 case 0x7b: key=12。 break。 } while(temp!=0xf0) { temp=P3。 temp=tempamp。0xf0。 } } } P3=0xf7。 //掃描矩陣鍵盤(pán)第四行 temp=P3。 temp=tempamp。0xf0。 if(temp!=0xf0) { delay(5)。 temp=P3。 temp=tempamp。0xf0。 if(temp!=0xf0) { temp=P3。 switch(temp) { case 0xe7: key=13。 break。 case 0xd7: key=14。 break。 case 0xb7: key=15。 break。 case 0x77: key=16。 break。 } while(temp!=0xf0) { temp=P3。 temp=tempamp。0xf0。 } } }}/******************************************/ /* 主程序 */ /******************************************/ void main(){ init()。 //調(diào)用初始化程序 while(1) { keyscan1()。 display(disnum)。 if(key1==0) { delay(5)。 if(key1==0) { TR1=1。 display(disnum)。 while(1) { keyscan()。 if(key==0) { display(disnum)。 } else { TR1=0。 bell=0。 //開(kāi)蜂鳴器 delay(500)。 bell=1。 while(1)//進(jìn)入死循環(huán),將所按下的鍵顯示并定格,防止有鍵再按下時(shí)將其覆蓋。 { display(key)。 } } } } } }}void time() interrupt 3{ TH1=(6553650000)/256。 TL1=(6553650000)%256。 count++。 if(count==20) { count=0。 disnum。//10秒倒計(jì)時(shí) if(disnum=5amp。amp。disnum0) {bell=0。 delay(1000)。 bell=1。 //關(guān)閉蜂鳴器 } if(disnum==0) { TR1=0。//關(guān)斷定時(shí)器0 bell=0。 //開(kāi)蜂鳴器 for(i=0。i600。i++)//循環(huán)調(diào)用顯示0延時(shí), display(disnum)。 bell=1。 //關(guān)斷蜂鳴器 while(1)。 //程序停止到這里 } }}28
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1