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

正文內(nèi)容

電子信息工程之數(shù)字萬年歷課程設計方案-資料下載頁

2025-04-28 05:13本頁面
  

【正文】 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)。 // while(wireless_3==1)。 }}void Setkey()//模式選擇按鍵{ Set=1。 if(Set==0)//||wireless_4==1) { mdelay(8)。 count=count+1。 //Setkey按一次,count就加1 done=1。 //進入調(diào)整模式 while(Set==0)。 //while(wireless_4==1)。 }}void keydone()//按鍵功能執(zhí)行{ uchar Second。 if(flag==0) //關閉時鐘,停止計時 { 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) { Write1302(0x8e,0x00)。 //寫入允許 Write1302(0x84,temp)。 //寫入新的小時數(shù) Write1302(0x8e,0x80)。 //禁止寫入 up_flag=0。 down_flag=0。 } hide_hour++。 if(hide_hour3) hide_hour=0。 show_time()。 }while(count==4)。break。 case 4:do //count=4,調(diào)整星期 { hide_hour=0。 outkey()。 Upkey()。 Downkey()。 if(up_flag==1||down_flag==1) { Write1302(0x8e,0x00)。 //寫入允許 Write1302(0x8a,temp)。 //寫入新的星期數(shù) Write1302(0x8e,0x80)。 //禁止寫入 up_flag=0。 down_flag=0。 } hide_week++。 if(hide_week3) hide_week=0。 show_time()。 }while(count==5)。break。 case 5:do //count=5,調(diào)整日 { hide_week=0。 outkey()。 Upkey()。 Downkey()。 if(up_flag==1||down_flag==1) { Write1302(0x8e,0x00)。 //寫入允許 Write1302(0x86,temp)。 //寫入新的日數(shù) Write1302(0x8e,0x80)。 //禁止寫入 up_flag=0。 down_flag=0。 } hide_day++。 if(hide_day3) hide_day=0。 show_time()。 }while(count==6)。break。 case 6:do //count=6,調(diào)整月 { hide_day=0。 outkey()。 Upkey()。 Downkey()。 if(up_flag==1||down_flag==1) { Write1302(0x8e,0x00)。 //寫入允許 Write1302(0x88,temp)。 //寫入新的月數(shù) Write1302(0x8e,0x80)。 //禁止寫入 up_flag=0。 down_flag=0。 } hide_month++。 if(hide_month3) hide_month=0。 show_time()。 }while(count==7)。break。 case 7:do //count=7,調(diào)整年 { hide_month=0。 outkey()。 Upkey()。 Downkey()。 if(up_flag==1||down_flag==1) { Write1302(0x8e,0x00)。 //寫入允許 Write1302(0x8c,temp)。 //寫入新的年數(shù) Write1302(0x8e,0x80)。 //禁止寫入 up_flag=0。 down_flag=0。 } hide_year++。 if(hide_year3) hide_year=0。 show_time()。 }while(count==8)。break。 case 8: count=0。hide_year=0。 //count8, 跳出調(diào)整模式,返回默認顯示狀態(tài) Second=Read1302(DS1302_SECOND)。 Write1302(0x8e,0x00)。 //寫入允許 Write1302(0x80,Secondamp。0x7f)。 Write1302(0x8E,0x80)。 //禁止寫入 done=0。 break。 //count=7,開啟中斷,標志位置0并退出 default:break。 }}void show_time() //液晶顯示程序{ DS1302_GetTime(amp。CurrentTime)。 //獲取時鐘芯片的時間數(shù)據(jù) TimeToStr(amp。CurrentTime)。 //時間數(shù)據(jù)轉(zhuǎn)換液晶字符 DateToStr(amp。CurrentTime)。 //日期數(shù)據(jù)轉(zhuǎn)換液晶字符 ReadTemp()。 //開啟溫度采集程序 temp_to_str()。 //溫度數(shù)據(jù)轉(zhuǎn)換成液晶字符 GotoXY(12,1)。 //液晶字符顯示位置 Print(TempBuffer)。 //顯示溫度 GotoXY(0,1)。 Print()。 //顯示時間 GotoXY(0,0)。 Print()。 //顯示日期 GotoXY(15,0)。 Print(week_value)。 //顯示星期 GotoXY(11,0)。 Print(Week)。 //在液晶上顯示 字母 week Delay1ms(400)。 //掃描延時}main(){ flag=1。 //時鐘停止標志 LCD_Initial()。 //液晶初始化 I
點擊復制文檔內(nèi)容
公司管理相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1