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

正文內(nèi)容

智能家居報警系統(tǒng)畢業(yè)設計-閱讀頁

2025-07-14 02:57本頁面
  

【正文】 add_24c02(0x04)。 flag=0。 flag=0。 flag2=0。 while(1) { if(people==0) { call()。 led=0。 bell=1。 temp=P1。0xf0。 flag=keyscan()。//介紹界面, flag2=1。 case 10: //開鎖程序,當輸入密碼錯誤次數(shù)在三次時,立即報警 //按重啟鍵才能停止報警 switch(flag1) { case 0: if (num26) { i=7。num26。 } delay(1000)。 delay(200)。 wrongtimes++。 for(c1=0。c1++) //顯示Codes Error!! { LCD_write_data(table7[c1])。 } LCD_write_(0x80+0x40)。c116。 delay(1)。 call()。 bell=0。 } } else { led=1。bell=1。flag2=0。 for(c1=0。c1++) //顯示Codes Is Ture! { LCD_write_data(table6[c1])。 } LCD_write_(0x80+0x40)。c116。 delay(1)。 door=1。 break。 case 11: //設置密碼,之后存入到AT24C02中; if (num26) { i=7。num26。 num2=0。 delay(200)。 flag3++。 //WRONG LCD_write_(0x80)。c116。 delay(1)。 for(c1=0。c1++) { LCD_write_data(table8[c1])。 } } else { set_control=1。 for(c1=0。c1++) //顯示Codes Is Ture! { LCD_write_data(table6[c1])。 } LCD_write_(0x80+0x40)。c116。 delay(1)。 flag=0。 flag3=0。 //鎖住界面 bell=0。 if (set_control==1) {if (length6) { i=7。length6。 set_control=0。 //修改完密碼調(diào)回主界面; flag2=0。 length=0。 write_add_24c02(password_init[0],0x00)。 write_add_24c02(password_init[1],0x01)。 write_add_24c02(password_init[2],0x02)。 write_add_24c02(password_init[3],0x03)。 write_add_24c02(password_init[4],0x04)。 write_add_24c02(password_init[5],0x05)。 } } break。 delay(10)。 delay(10)。 delay(10)。 delay(10)。 delay(10)。 delay(10)。 flag2=0。 case 13: password_init[0]=1。 password_init[2]=3。 password_init[4]=5。 password_init[6]=7。 flag2=0。 } }}(2):includedefine uint unsigned intdefine uchar unsigned charuchar code table[]=WELCOME!。 //11uchar code table2[]=Input Codes:。 //7uchar code table4[]= WARNING! 。 //16uchar code table6[]=Codes Is True! 。 //13uchar code table8[]= 。 //16uchar code table10[]=Key A:InputCodes。 //16uchar password[6]={1,2,3,4,5,0}。 //初始化密碼,每次開機從EEPROM中讀取;//sbit alarm=P3^2。sbit lcdrs=P2^1。 //報警燈,3次輸入密碼錯誤,燈亮sbit bell=P2^5。 //有人時,蜂鳴器響//sbit led1=P3^7。 //輸入密碼正確時,燈亮,模擬門開sbit people=P3^2。uchar set,test,password2,c1,set_control,flag,wrongtimes。void delay(uint z)。 //鍵盤掃描函數(shù),返回鍵盤值;void LCD_write_data(uchar date)。 //LCD1602寫指令函數(shù);void test_init()。 //兩個數(shù)組比較,相等返回0,不相等返回1;void set_password_init()。 //檢測密碼是否正確;void set_password()。 //操作指導界面void old_init()。 for(x=z。x) for(y=110。y)。 for(n=0。n++) { if (s1[n]!=s2[n]) return 1。}void LCD_write_(uchar ) //寫地址{ lcdrs=0。 P0=。 lcden=1。 lcden=0。 lcden=0。 delay(5)。 delay(5)。}void test_password(){ P1=0xfe。 temp=tempamp。 while(temp!=0xf0) { if (num26) { delay(50)。 password[num2]=password1。 LCD_write_data(0x30+password[num2])。 LCD_write_(0x80+0x40+i)。 i++。 } } P1=0xfd。 temp=tempamp。 while(temp!=0xf0) { if (num26) { delay(50)。 password[num2]=password1。 LCD_write_data(0x30+password[num2])。 LCD_write_(0x80+0x40+i)。 i++。 } } P1=0xfb。 temp=tempamp。 while(temp!=0xf0) { if (num26) { delay(50)。 password[num2]=password1。 LCD_write_data(0x30+password[num2])。 LCD_write_(0x80+0x40+i)。 i++。 } }}void set_password(){ P1=0xfe。 temp=tempamp。 while(temp!=0xf0) { if (length6) { delay(50)。 password_init[length]=password2。 LCD_write_data(0x30+password_init[length])。 LCD_write_(0x80+0x40+i)。 i++。 } } P1=0xfd。 temp=tempamp。 while(temp!=0xf0) { delay(50)。 password_init[length]=password2。 LCD_write_data(0x30+password_init[length])。 LCD_write_(0x80+0x40+i)。 i++。 } } P1=0xfb。 temp=tempamp。 while(temp!=0xf0) { if (length6) {delay(50)。 password_init[length]=password2。 LCD_write_data(0x30+password_init[length])。 LCD_write_(0x80+0x40+i)。 i++。 } }}uchar keyscan() //掃描鍵盤{ P1=0xfe。 temp=tempamp。 while(temp!=0xf0) { delay(5)。 temp=tempamp。 while(temp!=0xf0) { temp=P1。 break。 break。 break。 break。 temp=tempamp。 } } } P1=0xfd。 temp=tempamp。 while(temp!=0xf0) { delay(5)。 temp=tempamp。 while(temp!=0xf0) { temp=P1。 break。 break。 break。 break。 temp=tempamp。 } } } P1=0xfb。 temp=tempamp。 while(temp!=0xf0) { delay(5)。 temp=tempamp。 while(temp!=0xf0) { temp=P1。 break。 break。 break。 break。 temp=tempamp。 } } } P1=0xf7。 temp=tempamp。 while(temp!=0xf0) { delay(5)。 temp=tempamp。 while(temp!=0xf0) { temp=P1。 break。 break。 break。 break。 temp=tempamp。 } } }return num。 length=0。 LCD_write_(0x38)。 //光標設置 LCD_write_(0x06)。 //清屏 LCD_write_(0x80)。num316。 delay(1)。 for(num3=0。num3++) //顯示Codes: { LCD_write_data(table3[num3])。 }}void test_init(){ uchar num3。 lcden=0。 LCD_write_(0x0c)。 LCD_write_(0x01)。 for(num3=0。num3++) //顯示Input Codes: { LCD_write_data(table2[num3])。 } LCD_write_(0x80+0x40)。num37。 delay(
點擊復制文檔內(nèi)容
畢業(yè)設計相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1