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

正文內(nèi)容

智能家居報(bào)警系統(tǒng)畢業(yè)設(shè)計(jì)-資料下載頁

2025-06-29 02:57本頁面
  

【正文】 g_set。uchar set,test,password2,c1,set_control,flag,wrongtimes。uchar flag1,flag2,flag3。void delay(uint z)。 //延時(shí)函數(shù);uchar keyscan()。 //鍵盤掃描函數(shù),返回鍵盤值;void LCD_write_data(uchar date)。 //LCD1602寫數(shù)據(jù)函數(shù);void LCD_write_(uchar )。 //LCD1602寫指令函數(shù);void test_init()。 //檢測密碼前初始化;int pare(uchar s1[],uchar s2[])。 //兩個(gè)數(shù)組比較,相等返回0,不相等返回1;void set_password_init()。 //設(shè)置密碼對(duì)界面進(jìn)行初始化;void test_password()。 //檢測密碼是否正確;void set_password()。 //設(shè)置密碼函數(shù),設(shè)置完存入到password_init中;void conduce()。 //操作指導(dǎo)界面void old_init()。 //輸入舊密碼顯示界面;void delay(uint z){ uint x,y。 for(x=z。x0。x) for(y=110。y0。y)。}int pare(uchar *s1,uchar *s2){ int n。 for(n=0。n6。n++) { if (s1[n]!=s2[n]) return 1。 } return 0。}void LCD_write_(uchar ) //寫地址{ lcdrs=0。 lcden=0。 P0=。 delay(5)。 lcden=1。 delay(5)。 lcden=0。}void LCD_write_data(uchar date) //寫數(shù)據(jù){ lcdrs=1。 lcden=0。 P0=date。 delay(5)。 lcden=1。 delay(5)。 lcden=0。}void test_password(){ P1=0xfe。 temp=P1。 temp=tempamp。0xf0。 while(temp!=0xf0) { if (num26) { delay(50)。 password1=keyscan()。 password[num2]=password1。 LCD_write_(0x80+0x40+i)。 LCD_write_data(0x30+password[num2])。 delay(500)。 LCD_write_(0x80+0x40+i)。 LCD_write_data(0x2a)。 i++。 num2++。 } } P1=0xfd。 temp=P1。 temp=tempamp。0xf0。 while(temp!=0xf0) { if (num26) { delay(50)。 password1=keyscan()。 password[num2]=password1。 LCD_write_(0x80+0x40+i)。 LCD_write_data(0x30+password[num2])。 delay(500)。 LCD_write_(0x80+0x40+i)。 LCD_write_data(0x2a)。 i++。 num2++。 } } P1=0xfb。 temp=P1。 temp=tempamp。0xf0。 while(temp!=0xf0) { if (num26) { delay(50)。 password1=keyscan()。 password[num2]=password1。 LCD_write_(0x80+0x40+i)。 LCD_write_data(0x30+password[num2])。 delay(500)。 LCD_write_(0x80+0x40+i)。 LCD_write_data(0x2a)。 i++。 num2++。 } }}void set_password(){ P1=0xfe。 temp=P1。 temp=tempamp。0xf0。 while(temp!=0xf0) { if (length6) { delay(50)。 password2=keyscan()。 password_init[length]=password2。 LCD_write_(0x80+0x40+i)。 LCD_write_data(0x30+password_init[length])。 delay(500)。 LCD_write_(0x80+0x40+i)。 LCD_write_data(0x2a)。 i++。 length++。 } } P1=0xfd。 temp=P1。 temp=tempamp。0xf0。 while(temp!=0xf0) { delay(50)。 if (length6) { password2=keyscan()。 password_init[length]=password2。 LCD_write_(0x80+0x40+i)。 LCD_write_data(0x30+password_init[length])。 delay(500)。 LCD_write_(0x80+0x40+i)。 LCD_write_data(0x2a)。 i++。 length++。 } } P1=0xfb。 temp=P1。 temp=tempamp。0xf0。 while(temp!=0xf0) { if (length6) {delay(50)。 password2=keyscan()。 password_init[length]=password2。 LCD_write_(0x80+0x40+i)。 LCD_write_data(0x30+password_init[length])。 delay(500)。 LCD_write_(0x80+0x40+i)。 LCD_write_data(0x2a)。 i++。 length++。 } }}uchar keyscan() //掃描鍵盤{ P1=0xfe。 temp=P1。 temp=tempamp。0xf0。 while(temp!=0xf0) { delay(5)。 temp=P1。 temp=tempamp。0xf0。 while(temp!=0xf0) { temp=P1。 switch(temp) { case 0xee:num=1。 break。 case 0xde:num=4。 break。 case 0xbe:num=7。 break。 case 0x7e:num=14。 break。 } while(temp!=0xf0) { temp=P1。 temp=tempamp。0xf0。 } } } P1=0xfd。 temp=P1。 temp=tempamp。0xf0。 while(temp!=0xf0) { delay(5)。 temp=P1。 temp=tempamp。0xf0。 while(temp!=0xf0) { temp=P1。 switch(temp) { case 0xed:num=2。 break。 case 0xdd:num=5。 break。 case 0xbd:num=8。 break。 case 0x7d:num=0。 break。 } while(temp!=0xf0) { temp=P1。 temp=tempamp。0xf0。 } } } P1=0xfb。 temp=P1。 temp=tempamp。0xf0。 while(temp!=0xf0) { delay(5)。 temp=P1。 temp=tempamp。0xf0。 while(temp!=0xf0) { temp=P1。 switch(temp) { case 0xeb:num=3。 break。 case 0xdb:num=6。 break。 case 0xbb:num=9。 break。 case 0x7b:num=15。 break。 } while(temp!=0xf0) { temp=P1。 temp=tempamp。0xf0。 } } } P1=0xf7。 temp=P1。 temp=tempamp。0xf0。 while(temp!=0xf0) { delay(5)。 temp=P1。 temp=tempamp。0xf0。 while(temp!=0xf0) { temp=P1。 switch(temp) { case 0xe7:num=10。 break。 case 0xd7:num=11。 break。 case 0xb7:num=12。 break。 case 0x77:num=13。 break。 } while(temp!=0xf0) { temp=P1。 temp=tempamp。0xf0。 } } }return num。}void set_password_init(){ uchar num3。 length=0。 lcden=0。 LCD_write_(0x38)。 //顯示模式設(shè)置 LCD_write_(0x0e)。 //光標(biāo)設(shè)置 LCD_write_(0x06)。 //顯示光標(biāo)移動(dòng)設(shè)置 LCD_write_(0x01)。 //清屏 LCD_write_(0x80)。 //數(shù)據(jù)指針設(shè)置 for(num3=0。num316。num3++) //顯示Please Input New { LCD_write_data(table5[num3])。 delay(1)。 } LCD_write_(0x80+0x40)。 for(num3=0。num37。num3++) //顯示Codes: { LCD_write_data(table3[num3])。 delay(1)。 }}void test_init(){ uchar num3。 num2=0。 lcden=0。 LCD_write_(0x38)。 LCD_write_(0x0c)。 LCD_write_(0x06)。 LCD_write_(0x01)。 LCD_write_(0x80)。 for(num3=0。num312。num3++) //顯示Input Codes: { LCD_write_data(table2[num3])。 delay(1)。 } LCD_write_(0x80+0x40)。 for(num3=0。num37。num3++) //顯示Codes: { LCD_write_data(table3[num3])。 delay(1)。 }}init(){ uchar n
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1