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

正文內(nèi)容

數(shù)學(xué)鐘方案的實現(xiàn)與設(shè)計畢業(yè)論文-資料下載頁

2025-05-14 01:27本頁面
  

【正文】 i,j。 for(i=0。icount。i++) for(j=0。j120。j++)。}/*延時子程序*/void mdelay(uint delay){ uint i。 for(。delay0。delay) {for(i=0。i62。i++) //1ms延時. {。} }}void Upkey()//升序按鍵{ Up=1。 if(Up==0) { beeper(1)。 mdelay(8)。 switch(count) {case 1: temp=Read1302(DS1302_SECOND)。 //讀取秒數(shù) temp=temp+1。 //秒數(shù)加1 up_flag=1。 //數(shù)據(jù)調(diào)整后更新標志 if((tempamp。0x7f)0x59) //超過59秒,清零 temp=0。 break。 case 2: temp=Read1302(DS1302_MINUTE)。 //讀取分數(shù) temp=temp+1。 //分數(shù)加1 up_flag=1。 if(temp0x59) //超過59分,清零 temp=0。 break。 case 3: temp=Read1302(DS1302_HOUR)。 //讀取小時數(shù) temp=temp+1。 //小時數(shù)加1 up_flag=1。 if(temp0x23) //超過23小時,清零 temp=0。 break。 case 4: temp=Read1302(DS1302_WEEK)。 //讀取星期數(shù) temp=temp+1。 //星期數(shù)加1 up_flag=1。 if(temp0x7) temp=1。 break。 case 5: temp=Read1302(DS1302_DAY)。 //讀取日數(shù) temp=temp+1。 //日數(shù)加1 up_flag=1。 if(temp0x31) temp=1。 break。 case 6: temp=Read1302(DS1302_MONTH)。 //讀取月數(shù) temp=temp+1。 //月數(shù)加1 up_flag=1。 if(temp0x12) temp=1。 break。 case 7: temp=Read1302(DS1302_YEAR)。 //讀取年數(shù) temp=temp+1。 //年數(shù)加1 up_flag=1。 if(temp0x85) temp=0。 break。 default:break。 } while(Up==0)。 }}////////////////////////////////////////////////////////////////////////////////////////////////////////////void Downkey()//降序按鍵{ Down=1。 if(Down==0) { beeper(1)。 mdelay(8)。 switch(count) {case 1: temp=Read1302(DS1302_SECOND)。 //讀取秒數(shù) temp=temp1。 //秒數(shù)減1 down_flag=1。 //數(shù)據(jù)調(diào)整后更新標志 if(temp==0x7f) //小于0秒,返回59秒 temp=0x59。 break。 case 2: temp=Read1302(DS1302_MINUTE)。 //讀取分數(shù) temp=temp1。 //分數(shù)減1 down_flag=1。 if(temp==1) temp=0x59。 //小于0秒,返回59秒 break。 case 3: temp=Read1302(DS1302_HOUR)。 //讀取小時數(shù) temp=temp1。 //小時數(shù)減1 down_flag=1。 if(temp==1) temp=0x23。 break。 case 4: temp=Read1302(DS1302_WEEK)。 //讀取星期數(shù) temp=temp1。 //星期數(shù)減1 down_flag=1。 if(temp==0) temp=0x7。 break。 case 5: temp=Read1302(DS1302_DAY)。 //讀取日數(shù) temp=temp1。 //日數(shù)減1 down_flag=1。 if(temp==0) temp=31。 break。 case 6: temp=Read1302(DS1302_MONTH)。 //讀取月數(shù) temp=temp1。 //月數(shù)減1 down_flag=1。 if(temp==0) temp=12。 break。 case 7: temp=Read1302(DS1302_YEAR)。 //讀取年數(shù) temp=temp1。 //年數(shù)減1 down_flag=1。 if(temp==1) temp=0x85。 break。 default:break。 } while(Down==0)。 }}void Setkey()//模式選擇按鍵{ Set=1。 if(Set==0) { mdelay(8)。 count=count+1。 //Setkey按一次,count就加1 beeper(1)。 done=1。 //進入調(diào)整模式 while(Set==0)。 }}void keydone()//按鍵功能執(zhí)行{ uchar Second。 if(flag==0) //關(guān)閉時鐘,停止計時 { Write1302(0x8e,0x00)。 //寫入允許 temp=Read1302(0x80)。 Write1302(0x80,temp|0x80)。 Write1302(0x8e,0x80)。 //禁止寫入 flag=1。 } Setkey()。 //掃描模式切換按鍵 switch(count) {case 1:do //count=1,調(diào)整秒 { outkey()。 //掃描跳出按鈕 Upkey()。 //掃描加按鈕 Downkey()。 //掃描減按鈕 if(up_flag==1||down_flag==1) //數(shù)據(jù)更新,重新寫入新的數(shù)據(jù) { Write1302(0x8e,0x00)。 //寫入允許 Write1302(0x80,temp|0x80)。 //寫入新的秒數(shù) Write1302(0x8e,0x80)。 //禁止寫入 up_flag=0。 down_flag=0。 } hide_sec++。 //位閃計數(shù) if(hide_sec3) hide_sec=0。 show_time()。 //液晶顯示數(shù)據(jù) }while(count==2)。break。 case 2:do //count=2,調(diào)整分 { hide_sec=0。 outkey()。 Upkey()。 Downkey()。 if(temp0x60) temp=0。 if(up_flag==1||down_flag==1) { Write1302(0x8e,0x00)。 //寫入允許 Write1302(0x82,temp)。 //寫入新的分數(shù) Write1302(0x8e,0x80)。 //禁止寫入 up_flag=0。 down_flag=0。 } hide_min++。 if(hide_min3) hide_min=0。 show_time()。 }while(count==3)。break。 case 3:do //count=3,調(diào)整小時 { hide_min=0。 outkey()。 Upkey()。 Downkey()。 if(up_flag==1||down_flag==1)
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1