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

正文內(nèi)容

基于c51功能最全的電子鐘程序lcd1602-在線瀏覽

2025-08-05 14:11本頁面
  

【正文】 if(min1 0) { min1 = 59。 timestr1[4] = min1%10+39。 timestr1[3] = min1/10+39。 LCD_write_char(5,1,timestr1[3])。 LCD_write_mand(0xc0+6)。 case 3: if(0 == key2) //鬧鐘時(shí)加1的設(shè)置 { Delay1Ms(5)。 if(24 == hour1) { hour1 = 0。 timestr1[1] = hour1%10+39。 timestr1[0] = hour1/10+39。 LCD_write_char(2,1,timestr1[0])。 LCD_write_mand(0xc0+3)。 if(0 == key3) { hour1。 } while(!key3)。039。039。 LCD_write_char(3,1,timestr1[1])。 } } break。 LCD_write_mand(0x0c)。 } } } LCD_write_mand(0x0c)。}/*********************************************************************************************************** 判斷按鍵進(jìn)入時(shí)間調(diào)整 **********************************************************************************************************************/uint8 scan_key(void){ uint8 number = 1。 if(0 == key1) { Delay1Ms(5)。 a = 1。 LCD_write_mand(0x0f)。 if(0 == key1) { number++。 TR0 = 0。 LCD_write_mand(0x0f)。 LCD_write_mand(0x0f)。 LCD_write_mand(0x0f)。 LCD_write_mand(0x0f)。 LCD_write_mand(0x0f)。 LCD_write_mand(0x0f)。 a = 0。 } } } switch(number) { case 1: if(0 == key2) //秒加1的設(shè)置 { Delay1Ms(5)。 if(60 == sec) { sec = 0。039。039。 LCD_write_char(9,1,timestr[7])。 while(!key2)。 if(0 == key3) { sec。 } timestr[7] = sec%10+39。 timestr[6] = sec/10+39。 LCD_write_char(8,1,timestr[6])。 LCD_write_mand(0xc0+9)。 } } break。 if(0 == key2) { min++。 } timestr[4] = min%10+39。 timestr[3] = min/10+39。 LCD_write_char(5,1,timestr[3])。 LCD_write_mand(0xc0+6)。 } } if(0 == key3) //分減1的設(shè)置 { Delay1Ms(5)。 if(min 0) { min = 59。039。039。 LCD_write_char(6,1,timestr[4])。 while(!key3)。 case 3: if(0 == key2) //時(shí)加1的設(shè)置 { Delay1Ms(5)。 while(!key2)。 } timestr[1] = hour%10+39。 timestr[0] = hour/10+39。 LCD_write_char(2,1,timestr[0])。 LCD_write_mand(0xc0+3)。 if(0 == key3) { while(!key3)。 if(hour 0) { hour = 23。039。039。 LCD_write_char(3,1,timestr[1])。 } } break。 if(0 == key2) { while(!key2)。 if(calculate == 1) { if(month==1|month==3|month==5|month==7|month==8|month==10|month==12) { day++。 } } if(month==4|month==6|month==9|month==11) { day++。 } } if(month == 2) { cal_year = 1。amp。 cal_year = 0。 if(day 30) { day=1。 if(day 29) { day=1。 } daystr[9] = day%10+39。 daystr[8] = day/10+39。 LCD_write_char(10,0,daystr[8])。 LCD_write_mand(0x80+11)。 if(0 == key3) { while(!key3)。 if(calculate == 1) { if(month==1|month==3|month==5|month==7|month==8|month==10|month==12) { day。 } } if(month==4|month==6|month==9|month==11) { day。 } } if(month == 2) { cal_year = 1。amp。 cal_year = 0。 if(day == 0) { day=30。 if(day == 0) { day=29。 } daystr[9] = day%10+39。 daystr[8] = day/10+39。 LCD_write_char(10,0,daystr[8])。 LCD_write_mand(0x80+11)。 case 5: if(0 == key2) //月加1的設(shè)置 { Delay1Ms(5)。 month++。 } daystr[6] = month%10+39。 daystr[5] = month/10+39。 LCD_write_char(7,0,daystr[5])。 LCD_write_mand(0x80+8)。 if(0 == key3) { while(!key3)。 if(month == 0) { month = 12。039。039。 LCD_write_char(8,0,daystr[6])。 } } break。 if(0 == key2) { while(!key2)。 } daystr[3] = year%10+39。 daystr[2] = year/10%10+39。 daystr[1] = year/100%10+39。 daystr[0] = year/1000+39。 LCD_write_char(2,0,daystr[0])。 LCD_write_char(4,0,daystr[2])。 LCD_write_mand(0x80+5)。 if(0 == key3) { while(!key3)。 if(year == 0) { year = 2020。039。039。039。039。 LCD_write_char(3,0,daystr[1])。 LCD_write_char(5,0,daystr[3])。 } } break。 if(0 == key2) { while(!key2)。 if(7 == week) { week = 0。039。 LCD_write_mand(0xc0+14)。 if(0 == key3) { while(!key3)。 if(week 0) { week = 6。039。 LCD_write_mand(0xc0+14)。 case 8: TR0 = 1。 } } } /*********************************************************************************************************** 主函數(shù) ************************
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1