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

正文內(nèi)容

聲光顯示智力競(jìng)賽16路搶答器畢業(yè)論文-資料下載頁(yè)

2025-06-21 19:14本頁(yè)面
  

【正文】 delay(10)。 if(K0==0) { while(!K0)。 TR0=1。 s=time。 tt=0。 flag=1。 s_flag=1。 b_flag=1。 key=0。 beep=1。 rled=1。 fall_flag=0。 //清除違規(guī)標(biāo)志位 K_startcountflag=0。 K_timecountflag=0。 } }}void Scan(void){ while(1) { P1=0xff。 K5=0。 temp=temp amp。 0x0f。 if(temp!=0x0f) { for(i=50。i0。i) for(j=200。j0。j)。 temp=P1。 temp=temp amp。 0x0f。 if(temp!=0x0f) { temp=P1。 temp=temp amp。 0x0f。 switch(temp) { case 0x0e: key=7。 TR0=0。 //關(guān)閉定時(shí)器0,時(shí)間停止 TR1=1。 //打開(kāi)定時(shí)器1,使揚(yáng)聲器響一聲 s_flag=0。 //關(guān)閉開(kāi)始鍵標(biāo)志位,使再按其他十五個(gè)鍵不會(huì)響應(yīng) break。 case 0x0d: key=8。 TR0=0。 //下同 TR1=1。 s_flag=0。 break。 case 0x0b: key=9。 TR0=0。 TR1=1。 s_flag=0。 break。 case 0x07: key=10。 TR0=0。 TR1=1。 s_flag=0。 break。 } temp=P1。 P0=tabledu[key]。 temp=temp amp。 0x0f。 while(temp!=0x0f) { temp=P1。 temp=temp amp。 0x0f。 } } } P1=0xff。 K6=0。 temp=P1。 temp=temp amp。 0x0f。 if(temp!=0x0f) { for(i=50。i0。i) for(j=200。j0。j)。 temp=P1。 temp=temp amp。 0x0f。 if(temp!=0x0f) { temp=P1。 temp=temp amp。 0x0f。 switch(temp) { case 0x0e: key=4。 TR0=0。 TR1=1。 s_flag=0。 break。 case 0x0d: key=5。 TR0=0。 TR1=1。 s_flag=0。 break。 case 0x0b: key=6。 TR0=0。 TR1=1。 s_flag=0。 break。 case 0x07: key=11。 TR0=0。 TR1=1。 s_flag=0。 break。 } temp=P1。 P0=tabledu[key]。 temp=temp amp。 0x0f。 while(temp!=0x0f) { temp=P1。 temp=temp amp。 0x0f。 } } } P1=0xff。 K7=0。 temp=P1。 temp=temp amp。 0x0f。 if(temp!=0x0f) { for(i=50。i0。i) for(j=200。j0。j)。 temp=P1。 temp=temp amp。 0x0f。 if(temp!=0x0f) { temp=P1。 temp=temp amp。 0x0f。 switch(temp) { case 0x0e: key=1。 TR0=0。 TR1=1。 s_flag=0。 break。 case 0x0d: key=2。 TR0=0。 TR1=1。 s_flag=0。 break。 case 0x0b: key=3。 TR0=0。 TR1=1。 s_flag=0。 break。 case 0x07: key=12。 TR0=0。 TR1=1。 s_flag=0。 break。 } temp=P1。 P0=tabledu[key]。 temp=temp amp。 0x0f。 while(temp!=0x0f) { temp=P3。 temp=temp amp。 0x0f。 } } } P1=0xff。 K8=0。 temp=P3。 temp=temp amp。 0x0f。 if(temp!=0x0f) { for(i=50。i0。i) for(j=200。j0。j)。 temp=P1。 temp=temp amp。 0x0f。 if(temp!=0x0f) { temp=P1。 temp=temp amp。 0x0f。 switch(temp) { case 0x0e: key=0。 TR0=0。 TR1=1。 s_flag=0。 break。 case 0x0d: key=13。 TR0=0。 TR1=1。 s_flag=0。 break。 case 0x0b: key=14。 break。 case 0x07: key=15。 TR0=0。 TR1=1。 s_flag=0。 break。 } temp=P1。 P0=tabledu[key]。 temp=temp amp。 0x0f。 while(temp!=0x0f) { temp=P1。 temp=temp amp。 0x0f。 } } } }}void display(void){ if(flag==1) //開(kāi)始鍵按下,開(kāi)始計(jì)時(shí)搶答 { if(key!=0) //如果有人搶答,則顯示相應(yīng)的幾號(hào) { P0=tabledu[key]。 //顯示幾號(hào)搶到了 P2=tablewe[0]。 delay(2)。 P0=0。 P2=0XFF。 } else //否則沒(méi)人搶答,則前面不顯示幾號(hào) { P0=0。 P2=0XFF。 } P0=tabledu[s/10]。 //下面為顯示搶答倒計(jì)時(shí) P2=tablewe[2]。 delay(2)。 P0=0。 P2=0XFF。 P0=tabledu[s%10]。 P2=tablewe[3]。 delay(2)。 P2=0XFF。 P0=0。 } else //如果開(kāi)始鍵沒(méi)有按下,則顯示F FF(若有違規(guī)者,則顯示違規(guī)號(hào)碼及 FF)或時(shí)間調(diào)整 { if(fall_flag==1) //違規(guī)顯示 { if(key!=0) { P0=tabledu[key]。 //顯示幾號(hào)違規(guī)了 P2=tablewe[0]。 delay(2)。 P0=0。 P2=0XFF。 P0=tabledu[15]。 //下面顯示 FF,表示違規(guī)了 P2=tablewe[2]。 delay(2)。 P0=0。 //消隱 P2=0XFF。 P0=tabledu[15]。 P2=tablewe[3]。 delay(2)。 P0=0。 P2=0XFF。 } else { P0=0。 P2=0XFF。 } } else //沒(méi)有人違規(guī)才顯示調(diào)整時(shí)間 { if(K_startcountflag==1) { P0=0X6D。 //第一位數(shù)碼管顯示5(S)(表示搶答時(shí)間調(diào)整) P2=tablewe[0]。 delay(2)。 P0=0。 P2=0XFF。 P0=tabledu[time/10]。 //下面顯示調(diào)整的搶答時(shí)間 P2=tablewe[2]。 delay(2)。 P0=0。 P2=0XFF。 P0=tabledu[time%10]。 P2=tablewe[3]。 delay(2)。 P0=0。 P2=0XFF。 } else if(K_timecountflag==1) { P0=0X07。 //第一位與第二位數(shù)碼管合起來(lái)顯示T,表示答題時(shí)間調(diào)整 P2=tablewe[0]。 delay(2)。 P0=0。 P2=0XFF。 P0=0X31。 P2=tablewe[1]。 delay(2)。 P0=0。 P2=0XFF。 P0=tabledu[datitime/10]。 P2=tablewe[2]。 delay(2)。 P0=0。 P2=0XFF。 P0=tabledu[datitime%10]。 P2=tablewe[3]。 delay(2)。 P0=0。 P2=0XFF。 } else //否則顯示F FF { P0=tabledu[15]。 P2=tablewe[0]。 delay(2)。 P0=0。 P0=tabledu[15]。 P2=tablewe[2]。 delay(2)。 P0=0。 //消隱 P2=0XFF。 P0=tabledu[15]。 P2=tablewe[3]。 delay(2)。 P0=0。 P2=0XFF。 } } }}void Time_Scan(void) //調(diào)整時(shí)間鍵掃描{ if(K_startcount==0) //搶答時(shí)間調(diào)整 { delay(10)。 if(K_startcount==0) { while(!K_startcount)。 time++。 if(time==50) { time=20。 } K_startcountflag=1。 //將搶答時(shí)間標(biāo)志位置1 K_timecountflag=0。 //同時(shí)關(guān)閉答題時(shí)間標(biāo)志位 } } if(K_timecount==0) //答題時(shí)間調(diào)整 { delay(10)。 if(K_timecount==0) { while(!K_timecount)。 datitime++。 if(datitime==60) { datitime=30。 } K_timecountflag=1。 K_startcountflag=0。 } }}void main(void){ T0_Init()。 while(1) { Key_Scan()。 //開(kāi)始鍵掃描 if((flag==0)amp。(s_flag==1)) //當(dāng)開(kāi)始鍵沒(méi)按下及沒(méi)有人違規(guī)時(shí)才
點(diǎn)擊復(fù)制文檔內(nèi)容
物理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1