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

正文內(nèi)容

51基于單片機(jī)的電子萬(wàn)年歷畢業(yè)設(shè)計(jì)(參考版)

2024-08-17 05:39本頁(yè)面
  

【正文】 //掃描各功能鍵 }}}。 //液晶顯示數(shù)據(jù) flag=0。 //進(jìn)入默認(rèn)液晶顯示 while(1) { while(done==1) keydone()。 down_flag=0。 //液晶初始化 Initial_DS1302()。 //掃描延時(shí)}main(){ flag=1。 Print(Week)。 Print(week_value)。 Print()。 Print()。CurrentTime)。CurrentTime)。CurrentTime)。 //count=7,開(kāi)啟中斷,標(biāo)志位置0并退出 default:break。 //禁止寫(xiě)入 done=0。0x7f)。 Write1302(0x8e,0x00)。hide_year=0。break。 show_time()。 } hide_year++。 //禁止寫(xiě)入 up_flag=0。 //寫(xiě)入允許 Write1302(0x8c,temp)。 Downkey()。 outkey()。break。 show_time()。 } hide_month++。 //禁止寫(xiě)入 up_flag=0。 //寫(xiě)入允許 Write1302(0x88,temp)。 Downkey()。 outkey()。break。 show_time()。 } hide_day++。 //禁止寫(xiě)入 up_flag=0。 //寫(xiě)入允許 Write1302(0x86,temp)。 Downkey()。 outkey()。break。 show_time()。} hide_week++。 //禁止寫(xiě)入 up_flag=0。 //寫(xiě)入允許 Write1302(0x8a,temp)。 Downkey()。 outkey()。break。 show_time()。 } hide_hour++。 //禁止寫(xiě)入 up_flag=0。 //寫(xiě)入允許 Write1302(0x84,temp)。 Downkey()。 outkey()。break。 show_time()。 } hide_min++。 //禁止寫(xiě)入 up_flag=0。 //寫(xiě)入允許 Write1302(0x82,temp)。 if(temp0x60) temp=0。 Upkey()。 case 2:do //count=2,調(diào)整分 { hide_sec=0。 //液晶顯示數(shù)據(jù) }while(count==2)。 //位閃計(jì)數(shù) if(hide_sec3) hide_sec=0。 down_flag=0。 //寫(xiě)入新的秒數(shù) Write1302(0x8e,0x80)。 //掃描減按鈕 if(up_flag==1||down_flag==1) //數(shù)據(jù)更新,重新寫(xiě)入新的數(shù)據(jù) { Write1302(0x8e,0x00)。 //掃描跳出按鈕 Upkey()。 } Setkey()。 Write1302(0x8e,0x80)。 //寫(xiě)入允許 temp=Read1302(0x80)。 }}void keydone()//按鍵功能執(zhí)行{ uchar Second。 //Setkey按一次,count就加1 done=1。if(Set==0) { mdelay(8)。}while(Down==0)。 break。 //年數(shù)減1 down_flag=1。 case 7: temp=Read1302(DS1302_YEAR)。 if(temp==0) temp=12。 //讀取月數(shù) temp=temp1。 break。 //日數(shù)減1 down_flag=1。 case 5: temp=Read1302(DS1302_DAY)。 if(temp==0) temp=0x7。 //讀取星期數(shù) temp=temp1。 break。 //小時(shí)數(shù)減1 down_flag=1。 case 3: temp=Read1302(DS1302_HOUR)。 if(temp==1) temp=0x59。 //讀取分?jǐn)?shù) temp=temp1。 break。 //秒數(shù)減1 down_flag=1。 switch(count) {case 1: temp=Read1302(DS1302_SECOND)。 }}///////////////////////////////////////////////////////////////////////////////void Downkey()//降序按鍵{ Down=1。 default:break。 if(temp0x85) temp=0。 //讀取年數(shù) temp=temp+1。 break。 //月數(shù)加1 up_flag=1。 case 6: temp=Read1302(DS1302_MONTH)。 if(temp0x31) temp=1。 //讀取日數(shù) temp=temp+1。 break。 //星期數(shù)加1 up_flag=1。 case 4: temp=Read1302(DS1302_WEEK)。if(temp0x23) //超過(guò)23小時(shí),清零 temp=0。 //讀取小時(shí)數(shù)temp=temp+1。break。 //分?jǐn)?shù)加1up_flag=1。 case 2:temp=Read1302(DS1302_MINUTE)。0x7f)0x59) //超過(guò)59秒,清零 temp=0。 //秒數(shù)加1 up_flag=1。switch(count){case 1: temp=Read1302(DS1302_SECOND)。 }}///////////////////////////////////////////////////////////////////////////////void Upkey()//升序按鍵{ Up=1。 //禁止寫(xiě)入 done=0。0x7f)。 Write1302(0x8e,0x00)。 hide_sec=0,hide_min=0,hide_hour=0,hide_day=0,hide_week=0,hide_month=0,hide_year=0。if(out==0) { mdelay(8)。i++) //1ms延時(shí).{。delay){for(i=0。for(。j++)。i++)for(j=0。for(i=0。Write1302(0x8e,0x80)。Write1302(0x82,0x59)。 Write1302(0x8a,0x07)。 //以下寫(xiě)入初始化時(shí)間 日期:07/07/: 3. 時(shí)間: 23:59:55 Write1302(0x88,0x07)。0x80) //判斷時(shí)鐘芯片是否關(guān)閉 {Write1302(0x8e,0x00)。}void Initial_DS1302(void) //時(shí)鐘芯片初始化{ unsigned char Second=Read1302(DS1302_SECOND)。 } TimeDateString[8] = 39。TimeTimeString[7] = 39。} else{TimeTimeString[6] = 39。 TimeTimeString[7] = TimeSecond%10 + 39。 if(hide_sec2) {TimeTimeString[6] = TimeSecond/10 + 39。 } TimeTimeString[5] = 39。TimeTimeString[4] = 39。} else {TimeTimeString[3] = 39。 TimeTimeString[4] = TimeMinute%10 + 39。if(hide_min2){ TimeTimeString[3] = TimeMinute/10 + 39。} TimeTimeString[2] = 39。TimeT
點(diǎn)擊復(fù)制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1