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

正文內(nèi)容

基于單片機(jī)的萬年歷制作(參考版)

2025-06-30 19:52本頁面
  

【正文】 //掃描各功能鍵 } }}。 //液晶顯示數(shù)據(jù) flag=0。 while(1) { while(done==1) keydone()。 wireless_3=0。 //進(jìn)入默認(rèn)液晶顯示 wireless_1=0。 down_flag=0。 //DS18B20初始化 Initial_DS1302()。 //時(shí)鐘停止標(biāo)志 LCD_Initial()。 //在液晶上顯示 字母 week Delay1ms(400)。 //顯示星期 GotoXY(11,0)。 //顯示日期 GotoXY(15,0)。 //顯示時(shí)間 GotoXY(0,0)。 //顯示溫度 GotoXY(0,1)。 //溫度數(shù)據(jù)轉(zhuǎn)換成液晶字符 GotoXY(12,1)。 //日期數(shù)據(jù)轉(zhuǎn)換液晶字符 ReadTemp()。 //時(shí)間數(shù)據(jù)轉(zhuǎn)換液晶字符 DateToStr(amp。 //獲取時(shí)鐘芯片的時(shí)間數(shù)據(jù) TimeToStr(amp。 }}void show_time() //液晶顯示程序{ DS1302_GetTime(amp。 break。 Write1302(0x8E,0x80)。 //寫入允許 Write1302(0x80,Secondamp。 //count8, 跳出調(diào)整模式,返回默認(rèn)顯示狀態(tài) Second=Read1302(DS1302_SECOND)。 case 8: count=0。 }while(count==8)。 if(hide_year3) hide_year=0。 down_flag=0。 //寫入新的年數(shù) Write1302(0x8e,0x80)。 if(up_flag==1||down_flag==1) { Write1302(0x8e,0x00)。 Upkey()。 case 7:do //count=7,調(diào)整年 { hide_month=0。 }while(count==7)。 if(hide_month3) hide_month=0。 down_flag=0。 //寫入新的月數(shù) Write1302(0x8e,0x80)。 if(up_flag==1||down_flag==1) { Write1302(0x8e,0x00)。 Upkey()。 case 6:do //count=6,調(diào)整月 { hide_day=0。 }while(count==6)。 if(hide_day3) hide_day=0。 down_flag=0。 //寫入新的日數(shù) Write1302(0x8e,0x80)。 if(up_flag==1||down_flag==1) { Write1302(0x8e,0x00)。 Upkey()。 case 5:do //count=5,調(diào)整日 { hide_week=0。 }while(count==5)。 if(hide_week3) hide_week=0。 down_flag=0。 //寫入新的星期數(shù) Write1302(0x8e,0x80)。 if(up_flag==1||down_flag==1) { Write1302(0x8e,0x00)。 Upkey()。 case 4:do //count=4,調(diào)整星期 { hide_hour=0。 }while(count==4)。 if(hide_hour3) hide_hour=0。 down_flag=0。 //寫入新的小時(shí)數(shù) Write1302(0x8e,0x80)。 if(up_flag==1||down_flag==1) { Write1302(0x8e,0x00)。 Upkey()。 case 3:do //count=3,調(diào)整小時(shí) { hide_min=0。 }while(count==3)。 if(hide_min3) hide_min=0。 down_flag=0。 //寫入新的分?jǐn)?shù) Write1302(0x8e,0x80)。 if(up_flag==1||down_flag==1) { Write1302(0x8e,0x00)。 Downkey()。 outkey()。break。 show_time()。 } hide_sec++。 //禁止寫入 up_flag=0。 //寫入允許 Write1302(0x80,temp|0x80)。 //掃描加按鈕 Downkey()。 //掃描模式切換按鍵 switch(count) {case 1:do //count=1,調(diào)整秒 { outkey()。 //禁止寫入 flag=1。 Write1302(0x80,temp|0x80)。 if(flag==0) //關(guān)閉時(shí)鐘,停止計(jì)時(shí) { Write1302(0x8e,0x00)。 while(wireless_4==1)。 //Setkey按一次,count就加1 done=1。 if(Set==0||wireless_4==1) { mdelay(8)。 while(wireless_3==1)。 default:break。 if(temp==1) temp=0x85。 //讀取年數(shù) temp=temp1。 break。 //月數(shù)減1 down_flag=1。 case 6: temp=Read1302(DS1302_MONTH)。 if(temp==0) temp=31。 //讀取日數(shù) temp=temp1。 break。 //星期數(shù)減1 down_flag=1。 case 4: temp=Read1302(DS1302_WEEK)。 if(temp==1) temp=0x23。 //讀取小時(shí)數(shù) temp=temp1。 //小于0秒,返回59秒 break。 //分?jǐn)?shù)減1 down_flag=1。 case 2: temp=Read1302(DS1302_MINUTE)。 //數(shù)據(jù)調(diào)整后更新標(biāo)志 if(temp==0x7f) //小于0秒,返回59秒 temp=0x59。 //讀取秒數(shù) temp=temp1。 if(Down==0||wireless_3==1) { mdelay(8)。 while(wireless_2==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。
點(diǎn)擊復(fù)制文檔內(nèi)容
醫(yī)療健康相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1