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

正文內(nèi)容

基于c51功能最全的電子鐘程序lcd1602-閱讀頁(yè)

2025-07-03 14:11本頁(yè)面
  

【正文】 **************************************************************************************************/void main(void){ systimer0_init()。 LCD_write_str(0,0,str1)。 LCD_write_str(13,0,str3)。 while (1) { TimeChange()。 naozhong()。 LCD_write_str(2,1,timestr)。 if(1 == run) { if(sec==sec1 amp。 hour==hour) { speaker_num =30。 } } else { speaker_num =0。 } } }/*********************************************************************************************************** 定時(shí)中斷0 **************************************************************************************************************************/void time_0() interrupt 1{ TH0 = 0xDC。 number++。 if(beep) { speaker=!speaker。 if(speaker_num == 0) { beep=0。 } } if(sec == 60) { sec = 0。 if(min == 60) { min = 0。 //小時(shí)加1 speaker_num = hour%12。 if(hour == 24) { hour = 0。 if(calculate == 1) //判斷這個(gè)月有多少天 { if(month==1|month==3|month==5|month==7|month==8|month==10|month==12) { day++。 if(7 == week) { week = 0。 if(7 == week) { week = 0。 } else { day=0。 if(month 12) { month=1。 cal_year=1。 week++。 } if(day 30) { day=1。 if(month 12) { month=1。 cal_year=1。amp。 cal_year = 0。 if(day = 30) { week++。 } } if(day 30) { day=1。 if(month 12) { month=1。 cal_year=1。 week++。 } if(day 29) { day=1。 if(month 12) { month=1。 cal_year=1。 } } } } }////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////://///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////*********************************************************************************************************** lcd1602低層函數(shù) ****************************************************************************************************************************/ include include include define LCD_DATA P0 //LCD1602的數(shù)據(jù)口定義sbit LCD_RS = P0^0。sbit LCD_EN = P0^2。n0。 } }/*********************************************************************************************************** 延時(shí)1MS ****************************************************************************************************************************/void Delay1Ms(uint16 n){ while(n) { Delay1Us(1000)。 LCD_EN=1。 LCD_EN=0。 LCD_RS=0。 LCD_DATAamp。 LCD_DATA|=mandamp。 LCD_en_write()。 LCD_DATAamp。 LCD_DATA|=mandamp。 LCD_en_write()。 LCD_RS=1。 LCD_DATAamp。 LCD_DATA|=Dataamp。 LCD_en_write()。 LCD_DATAamp。 LCD_DATA|=Dataamp。 LCD_en_write()。 if(y==0)address=0x80+x。 LCD_write_mand(address)。// Delay1Us(40)。 LCD_write_mand(0x0c)。 LCD_write_mand(0x06)。}/*********************************************************************************************************** LCD寫字符串函數(shù) ******************************************************* x列0~15;y行0~1 ******************************************************* s指向字符串?dāng)?shù)組 ********************************* **************************************************************************************/void LCD_write_str(uint8 x,uint8 y,uint8 *s){ LCD_set_xy(x,y)。 s++。 LCD_write_data(d)。 do { LCD_RS = 0。 LCD_EN = 0。 }while (BUSY == 1)。 }*//*********************************************************************************************************** LCD1602左移 ****************************************************************************************************************************void LCD_youyi(uint8 y,uint8 *s){ LCD_write_str(17,y,s)。a16。 //左移 LCD_write_mand(0x1c)。 } }*///LCD_write_mand(0x0d)。//光標(biāo)顯示不閃爍////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////ifndef _LCD16024_H_define _LCD16024_H_typedef unsigned char uint8。typedef unsigned long uint32。void Delay1Ms(uint16 n)。void LCD_write_mand(uint8 )。void LCD_en_write(void)。void LCD_write_str(uint8 x, uint8 y,uint8 *s)。//void LCD_wait(void)。endif29
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1