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

正文內容

智能家居警報系統(tǒng)設計物聯(lián)網(wǎng)實訓設計報告(文件)

2025-08-07 01:44 上一頁面

下一頁面
 

【正文】 3)!=NULL) { Red_LED = 0。 } //Second_AT_Command(AT+CMGD=1,10)。 unsigned int k。 Send_ASCII(AT+CREG?)。kBuf1_Max。139。 break。 Delay_ms(100)。 Timer0_init()。 Set_Text_Mode()。 Green_LED = 0。 //停止定時器0 Count_time++。 Times = 0。 //開啟定時器0}//串口1中斷處理函數(shù)void Serial_Int(void) interrupt 4 { ES = 0。 //將接收到的字符串存到緩存中 First_Int++。 lcd_wcmd(0x01)。 l_key=0xff。 display(0x00+k, )。 l_key=0xff。 speaker=0。 longdelay(10)。 for(j=0。j++) 。 while(1) { ReadKey()。 longdelay(10)。 } else if(l_key==11) //修改密碼 { l_key=0xff。 break。 longdelay(10)。i++) correct_old_change=pswd[i]pswd_flash[i]+correct_old_change。 display(0x00,Input new passwo)。 for(i=0。 display(0x00,Input it again!)。i6。 for(i=0。 display(0x00,Establishes succ)。 } else //新密碼不正確 { times++。 } }void alarm_f(void){ l_key=0xff。 EX0=1。 if(l_key==15) //關閉防盜系統(tǒng) { lcd_wcmd(0x01)。 EA=0。 // while(1)。 EX1=1。539。,0x04)。 _24C02Write(39。139。,0x00)。 longdelay(10)。 delay(200)。i++) //輸入密碼與實際密碼比較 correct_old=pswd[i]pswd_flash[i]+correct_old。 display(0x00,Correct!)。 break。 } }}void steal() interrupt 2{ code uchar sms[]={Alarm! Someone has interrupt your house!}。 display(0x00,Alarm!)。 }}define _at24c02_Hinclude include include define W24C02 0xA0 //存儲器的寫地址define R24C02 0xA1 //存儲器的讀地址sbit SDA=P3^7。 //24C02寫函數(shù)void I2C_write(unsigned char tmp)//I2C寫入一個8位二進制數(shù),高位在前低位在后{ unsigned char i。 _nop_()。0x80)。_nop_()。 _nop_()。_nop_()。 for(i=0。 _nop_()。_nop_()。 SCL=1。_nop_()。 } SCL=0。_nop_()。 SCL=1。_nop_()。 _nop_()。 _nop_()。 _nop_()。 _nop_()。 I2C_start()。//先寫入地址, I2C_ACK(1)。 I2C_ACK(0)。 //讀取一個地址的數(shù)據(jù)結束 delay(20)。 //先向總線發(fā)出寫24C02的地址 I2C_ACK(0)。 //然后寫入數(shù)據(jù) I2C_ACK(1)。uchar sms2[]={AT+CMGS=13760727792\r}。//初始化串行口void InitCom(void){uchar THTL。 //串口方式1,TMOD = 0x20。TR1 = 1。 while(sms1[i]!=39。 TI=0。\039。 j++。) { SBUF=sms[k]。 } SBUF=sms3。//鍵盤的讀取,我們采用分時掃描unsigned char l_key=0xff。 j=0xfe。i++){ P1=j。 } j=_crol_(j,1)。 } l_keyold=key。 break。sbit rw = P0^6。void lcd_wcmd(uchar)。void display(uchar,uchar *)。 i rs = 0。 0x80)。 rs = 0。 ep = 1。 rs = 1。 ep = 1。 lcd_wcmd(0x38)。 lcd_wcmd(0x01)。 lcd_wcmd(0x0c)。\039。 } }42。 lcd_wdat(*q)。}函數(shù)名稱:display()功能 :在LCD上顯示數(shù)組的數(shù)據(jù) ,打印模式說明 :先寫顯示地址,后寫顯示數(shù)據(jù)調用 :lcd_wcmd(), lcd_pos()入口參數(shù):pos 寫入的位置,q指向要寫入的數(shù)據(jù)所在的數(shù)組返回值 :無void display(uchar pos, uchar *q){ lcd_pos(pos)。 lcd_wcmd(0x06)。 lcd_wcmd(0x08)。 }void lcd_init(){ //LCD初始化設定 lcd_wcmd(0x38)。 ep = 0。 }void lcd_pos(uchar pos){ //設定顯示位置 lcd_wcmd(pos | 0x80)。 ep = 0。 return result。 ep = 1。 }}void longdelay(uchar s) //長延時{ while(s) { delay(80)。void delay(uchar ms){ // 延時子程序 uchar i。void lcd_pos(uchar)。void delay(uchar)。} endififndef _LCD1602_Hdefine _LCD1602_Hinclude include define uchar unsigned chartypedef bit BOOL 。i17。 return。0xf0)!=0xf0){ //如果有鍵按下,P1高4位不會全為1, key=P1。 //設定初值 for (i=0。 //做為按鍵松開否的憑證 void ReadKey(void)。 TI=0。 TI=0。 while(sms[k]!=39。 while(!TI)。 } longdelay(10)。) { SBUF=sms1[i]。 //InitCom()。TL1 = THTL。ET1=0。void InitCom(void)。 delay(20)。 //寫入地址 I2C_ACK(0)。}void _24C02Write(unsigned char dat,unsigned char l_address){ I2C_start()。 I2C_ACK(1)。 I2C_start()。 //向I2C總線發(fā)出讀取24C02的地址 I2C_ACK(0)。 _nop_()。 _nop_()。 _nop_()。 _nop_()。 SCL=0。_nop_()。_nop_()。 }void I2C_ACK(bit tmp) //根據(jù)tmp的0來決定應答信號{ SDA=tmp。 tmp=1。_nop_()。_nop_()。 //加入空指令增加穩(wěn)定性,這關系到頻率問題 SDA=1。i++){ SCL=0。}unsigned char I2C_read(void)////I2C讀取一個8位二進制數(shù),也是高位在前低位在后{ unsigned char i,tmp。_nop_()。_nop_()。 _nop_()。 _nop_()。i8。 //AT24C02串行時鐘 unsigned char _24C02Read(unsigned char l_address)。 gsm(sms)。 if(int1==0) { speaker=0。 } } else //密碼不正確 { times++。 lcd_wcmd(0x01)。 times=0。 for(i=0,correct_old=0。i6。 //lcd初始化 display(0x00,Please input the)。 _24C02Write(39。,0x02)。339。 // 寫入初始密碼012345 _24C02Write(39。 times=0。 EX0=1。 } }}void main(){ InitCom()。 display(0x40,tem.)。 EA=1。 display(0x00,System startup.)。 } } else //舊密碼不正確 { times++。 longdelay(10)。i++) _24C02Write(pswd_new[i],0x00+i)。 if(correct_new==0) //新密碼正確,修改密碼成功 { speaker=1。 input()。i++) pswd_new[i]=pswd[i]。 longdelay(10)。 times=0。 for(i=0,correct_old_change=0。 display(0x00,Input old passwo)。 break。 l_key=0xff。 display(0x00,Open the door.)。}void function(void){ display(0x00,Please press the)。j++) //自鎖 for(j=0。 display(0x00,Try it tomorrow!)。 lcd_wcmd(0x01)。 } }}void pswd_error(void){ code uchar sms[]={Alarm! someone has inputed wrong password three times.}。 } } while(k=6) { ReadKey()。 } if(l_key==12) // 刪除
點擊復制文檔內容
職業(yè)教育相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1