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

正文內(nèi)容

基于c51功能最全的電子鐘程序lcd1602-全文預(yù)覽

  

【正文】 } if(day 31) { if(month==7|month==12) { day = 1。 if(month==7|month==12) { week++。 //蜂鳴器響的次數(shù) beep = 1。 min++。 speaker_num。 // 定時(shí) 10ms TL0 = 0x00。 beep = 1。 LCD_write_char(14,1,WeekData)。 scan_key()。 20 LCD_write_str(0,1,str2)。 break。)。 week。)。 19 week++。 LCD_write_mand(0x80+5)。 LCD_write_char(2,0,daystr[0])。 daystr[1] = year/100%10+39。 } daystr[3] = year%10+39。 } if (0 == key3) //年減 1 的設(shè)置 { Delay1Ms(5)。 LCD_write_char(3,0,daystr[1])。039。039。 case 6: if(0 == key2) //年加 1 的設(shè)置 { Delay1Ms(5)。 LCD_write_char(7,0,daystr[5])。 } daystr[6] = month%10+39。 } } if(0 == key3) //月減 1 的設(shè)置 { Delay1Ms(5)。039。 if(13 == month) { month = 1。 } } break。039。 } } } calculate = 0。 } if(leap_year==1) { day。 while(cal_year == 1) { leap_year = ((year % 4 == 0 amp。 if(day == 0) { day=31。 } } if(0 == key3) //日減 1 的設(shè)置 { Delay1Ms(5)。039。 } } } calculate = 0。 } if(leap_year==1) { day++。 while(cal_year == 1) { leap_year = ((year % 4 == 0 amp。 if(day 31) { day=1。 14 case 4: if(0 == key2) //日加 1 的設(shè)置 { Delay1Ms(5)。 LCD_write_char(2,1,timestr[0])。 } timestr[1] = hour%10+39。 } } if(0 == key3) //時(shí)減 1 的設(shè)置 { Delay1Ms(5)。039。 if(24 == hour) { hour = 0。 } } break。 LCD_write_char(5,1,timestr[3])。 } timestr[4] = min%10+39。 while(!key2)。039。 if(60 == min) { min = 0。 while(!key3)。039。 if(sec 0) { sec = 59。 LCD_write_mand(0xc0+9)。 timestr[6] = sec/10+39。 if(0 == key2) { sec++。 } if(8 == number) { 11 LCD_write_mand(0x0c)。 } if(number == 6) { LCD_write_mand(0x80+5)。 } if(number == 4) { LCD_write_mand(0x80+11)。 if(number == 2) { LCD_write_mand(0xc0+6)。 } 10 } while(a) { if(0 == key1) { Delay1Ms(5)。 if(0 == key1) { while(!key1)。 while(!key4)。 case 4: b = 0。 LCD_write_char(2,1,timestr1[0])。 timestr1[1] = hour1%10+39。 } } if(0 == key3) //鬧鐘時(shí)減 1 的設(shè)置 { Delay1Ms(5)。039。 } while(!key2)。 } } break。039。 } while(!key3)。 LCD_write_mand(0xc0+6)。 timestr1[3] = min1/10+39。 if(60 == min1) { min1 = 0。 LCD_write_mand(0xc0+9)。 timestr1[6] = sec1/10+39。 if(sec1 0) { sec1 = 59。 LCD_write_char(9,1,timestr1[7])。039。 if(0 == key2) { sec1++。 LCD_write_mand(0x0f)。 } while(!key1)。 } while(!key1)。 } else { timestr[9] = 39。 run = ~run。 LCD_write_mand(0x0f)。 uint8 b = 0。 TR0=1。) TH0 = 0xDC。 } /************************************************************************************* ********************** 初 始 化 系 統(tǒng) 定 時(shí) 器 0 ************************************ **************************************************************************************/ void systimer0_init(void) { TMOD |=0x01。 daystr1[0] = year1/1000+39。 daystr1[2] = year1/10%10+39。 4 daystr1[5] = month1/10+39。 daystr1[8] = day1/10+39。 timestr1[0] = hour1/10+39。 timestr1[3] = min1/10+39。 timestr1[6] = sec1/10+39。 //星期 WeekData = week+39。 daystr[1] = year/100%10+39。 daystr[3] = year%10+39。 daystr[6] = month%10+39。 //年月日 daystr[9] = day%10+39。 timestr[1] = hour%10+39。 timestr[4] = min%10+39。 //函數(shù)聲名 /************************************************************************************* ********************** 更新 LCD 時(shí) 間 分 離 讀 取 3 ************************************ **************************************************************************************/ void TimeChange() { //時(shí)分秒 timestr[7] = sec%10+39。 //鬧鐘星 期標(biāo)記 uint8 number = 0。 //鬧鐘時(shí) uint8 day1 = 30。 //年 char week1 = 1。 //分 char hour = 23。 //鬧鐘時(shí)分秒格式 uint8 numweek = 0。 uint8 daystr[]=20200729 。 //整點(diǎn)報(bào)時(shí)標(biāo)志 //uint8 num = 0。 //進(jìn)入判斷閏年標(biāo)志位 bit leap_year。 //加 1 sbit key3 = P2^2。 1 功能最全的電子鐘 【單片機(jī)】 c51 數(shù)字時(shí)鐘(帶年月日顯示) 摘要 : 本設(shè)計(jì)以單片機(jī)為核心, lcd1602 顯示。 //調(diào)整 sbit key2 = P2^1。 //鬧鐘設(shè)計(jì) bit cal_year = 1。 //鬧鐘標(biāo)志 bit beep = 0。 uint8 code str3[] = Wek。 //鬧鐘年月日格式 uint8 timestr1[]=21:30:59 N。 //秒 char min = 50。 //月 uint16 year = 2020。 //鬧鐘分 char hour1 = 23。 //鬧鐘年 uint8 WeekData1。 //整點(diǎn)報(bào)時(shí)次數(shù) uint8 scan_key(void)。039。039。039。039。039。039。039。039。039。039。039。039。039。039。039。//設(shè)置為 0 時(shí)用與( amp。 ET0=1。 uint8 a = 0。 5 LCD_write_mand(0xc0+9)。 if(0 == key4) { a = 0。
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1