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

正文內(nèi)容

基于51單片機(jī)的密碼鎖設(shè)計程序_-wenkub.com

2024-08-24 20:04 本頁面
   

【正文】 sleep_flag=0。 ET1=1。cc=0。 // 防止在喚醒之后 又立刻進(jìn)入睡眠 ET0=1。 //返回標(biāo)志位 } cc++。 if(aa==20) //1s { aa=0。 b_flag=1。 if(m==60) //10s { m=0。 m++。 } } } void timer0() interrupt 1 { TH0=(6553646080)/256。 up_flag=0。 flag3=0。 } write_(0xc5)。 write_(0x80)。 } k_flag=0。 // } while(!k_flag) //倒計時頁面 { write_(0x80+0x40+0x00)。 for(i=0。i10。delay(500)。delay(500)。delay(500)。delay(500)。 // while(1)。 for(i=0。 for(i=0。 } write_(0xc5)。 write_(0x80)。 } if(rst|return_flag) break。 flag4=0。 } /*此處可加定時返回功能 15s左右 */ } /*并在 1602上顯示 在 if 中用 或語句 */ if(rst|return_flag) { modify_flag=0。 count=0。 flag2=0。i++) { write_data(table5[i])。 write_(0x01)。 count=0。 flag2=0。i++) { //密碼修改成功 寫入 set succed write_data(table8[i])。 write_(0x01)。 write_at2404(12,b[2])。i6。amp。amp。 } shu_flag=0。 case 5:b[count1]=key。 case 3:b[count1]=key。 //進(jìn)行掃描 采集數(shù)據(jù) if(shu_flag) { switch(count) { //二次輸入密碼 數(shù)據(jù)放入 b【】在比較 case 1:b[count1]=key。 } write_(0xc5)。 write_(0x80)。 case 6:table3[5]=key。 case 4:table3[3]=key。 case 2:table3[1]=key。 //定位光標(biāo) count=0。 for(i=0。 //while循環(huán) 保證連續(xù)不停的掃描 while(modify_flag) //在開鎖函數(shù)內(nèi)部 { keyscan()。 /*修改函數(shù)不成功 就按返回鍵 在 while大循環(huán)重新設(shè)置 */ /*知道修改成功 或者繼續(xù)返回時間頁面 打開 輸入密碼 */ // while(1) // { // keyscan()。 // rst=0。 // if(down_flag==1) // { // flag3=0。 flag10=0。 b_flag=0。 write_data(num_to_char[s/10])。)。 // for(i=0。i13。//鍵盤掃描 對修改和打開標(biāo)志位判斷 if(modify_flag) break。 // flag3=0。//For open write_(0x0c)。 //For modify write_(0x80+0x40)。 write_(0x80)。delay(500)。delay(500)。delay(500)。delay(500)。 //修改密碼標(biāo)志位 只有開鎖之后才能修改密碼 flag4=1。i16。i16。amp。amp。amp。 case 6:a[count1]=key。 case 4:a[count1]=key。 case 2:a[count1]=key。 write_(0xc5)。 write_(0x80)。 //清零 // count=0。i16。 /*秒 */ for(i=0。 /*時 */ lcd1602_line2[7] = num_to_char[p[1]/0x10]。i++) lcd1602_line1[i+13]=Weeks[p[5]amp。 /*月 */ lcd1602_line1[9] = num_to_char[p[3]/0x10]。 lcd1602_line1[3] = num_to_char[p[6]/0x10]。 //0000 0010 }// keyscan()。 while(sleep_flag==1) { ET0=0。 set_real_time(time_data_buff)。 table3[3]=read_at2402(13)。 // write_at2404(15,0x00)。 /*初始化 之后屏蔽掉 */ // write_at2404(11,0x00)。 /*可將值賦予數(shù)組 table3【】 可作變量使用 */ // uchar aa,bb,cc,dd,ee,ff。//外部中斷用來喚醒睡眠 EX1=1。 ET0=1。 TL0=(6553646080)%256。 uchar code table15[]={Open the door}。 uchar code table10[]={ Count down...}。 uchar code table6[]={ Fuck you!!! }。 uchar code table1[]={Error!try again:}。 /*數(shù)字標(biāo)志位 修改密碼標(biāo)志位 返還標(biāo)志位 1 2 3 4 保護(hù)數(shù)據(jù)標(biāo)志位,防重復(fù)寫入 */ sbit beep=P2^3。 bit k_flag=0。 uchar k,s,w。 uchar data time_data_buff[7]={0x50,0x42,0x10,0x02,0x08,0x06,0x14}。 extern bit fun_flag。 endif /*********************************************************** 名稱:電子密碼鎖 時間: 2020年 8月 2日 16:33:48 WRITE BY:Kengkeng Today is Valentine39。 } // beep=1。 temp=tempamp。bb=0。 case 0x77: key=13。aa=0。break。fun_flag=1。write_(0x80+0x40+0x0a)。 case 6: write_(0x80+0x40+0x0a)。 39。write_(0x80+0x40+8)。 case 4: write_(0x80+0x40+8)。 39。write_(0x80+0x40+6)。 case 2: write_(0x80+0x40+6)。 39。bb=0。 switch(temp) { //清除鍵 case 0xe7: //key=12。 temp=tempamp。 delay(500)。 //返回鍵 } while(temp!=0xf0) { temp=P1。aa=0。cc=0。 case 0xbb: modify_flag=1。aa=0。*39。break。if(count6) count=0。write_data(39。 if(temp!=0xf0) { delay(15)。 } } P1=0xfb。 // write_data(39。0xf0。cc=0。 count++。key=7。bb=0。)。 //保證在按鍵器件不會自動返回 case 0xbd: shu_flag=1。aa=0。*39。break。if(count6) count=0。write_data(39。 if(temp!=0xf0) { delay(15)。 } } P1=0xfd。 } while(temp!=0xf0)。 // write_data(39。0xf0。cc=0。 count++。shu_flag=1。bb=0。)。 case 0xbe: key=2。aa=0。*39。break。if(count6) count=0。write_data(39。 if(temp!=0xf0) { delay(15)。 void keyscan() { P1=0xfe。 uchar temp,count,aa,bb,cc。 void display()。 wela=1。 endif include void display() { P0=0。 } ifndef __DELAY_H__ define __DELAY_H__ include include define uchar unsigned char define uint unsigned int void delay(uchar x)。} void delay3(uint q) { uint e。jb0。 endif include void delay(uchar x) { uchar a,b。 void i2c_write_byte(uchar)。 void i2c_start()。 i2c_stop()。 i2c_writ
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1