版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、程序:#include #include #definee uchaar unssignedd charr#definee uintt unsiigned int#definee Dbuss P0#definee bufffer1IDD 0 x001#definee bufffer2IDD 0 x002#definee querren 00 x88#definee tuicchu 00 x84#definee shannchu 00 x82sbit B00=B0;sbit B77=B7;sbit jiidianqqi=P36;sbit RSS=P222; sbit RWW=P211;sbit
2、E11=P200;sbit LEEDK=P334; /控控制背光sbit SCCLK=P223;sbit IOO=P255;sbit RSST=P24;uchar ccode tta8=0 x000,0 x511,0 x099,0 x100,0 x055,0 x022,0 x111,0 xbee;uchar ddata aa7; / 秒秒 分 時 日 月 星星期 年 uchar ddz4; /存鍵鍵輸入值uchar mmima77;uchar mmimaIDD6=1,2,33,4,5,6;uchar ddata KK;uchar ddata KKey;uint PaageID;uchar dd
3、ata qquerennma;uchar ssum2;int summmaf,ssummass;uchar ccode nnian=年;uchar ccode yyue=月;uchar ccode rri=日;uchar ccode xxinqi=星星期;uchar ccode mmao=0 xx3a;unsigneed chaar codde texxt1= 請按指紋紋 ;unsigneed chaar codde texxt2= 請請再次按指紋紋 ;unsigneed chaar codde texxt3= 指指紋采集成功功 ;unsigneed chaar codde texxt4=請按
4、任任意鍵繼續(xù) ; unsigneed chaar codde texxt5= 指指紋采集失敗敗 ;unsigneed chaar codde texxt6=輸入刪刪去的指紋號號;unsigneed chaar codde texxt7= 刪刪指紋號成功功 ;unsigneed chaar codde texxt8=按鍵一一:增加指紋紋;unsigneed chaar codde texxt9=按鍵二二:刪去指紋紋;unsigneed chaar codde texxt10= 請重新按指指紋 ;unsigneed chaar codde texxt11=清空空指紋庫成功功 ; unsigneed
5、 chaar codde texxt12= 沒搜索到指指紋 ; unsigneed chaar codde texxt13=請先先按鍵再刷指指紋;unsigneed chaar codde texxt14= 請重新操作作 ; unsigneed chaar codde texxt15= 刪去失失敗 ; unsigneed chaar codde texxt16= 接收包出錯錯 ;unsigneed chaar codde texxt17= 編號為: ;unsigneed chaar codde texxt18=指紋紋已找到 請進;unsigneed chaar codde texxt19= 該
6、指紋已存存儲 ;unsigneed chaar codde texxt20= 請輸入密碼碼 ;unsigneed chaar codde texxt21= 密碼錯錯誤 ;unsigneed chaar codde texxt22=按鍵鍵三:更新密密碼; / unsigneed chaar codde texxt23=請再再次輸入密碼碼 ; unsigneed chaar codde texxt24=兩次次輸入的密碼碼不;unsigneed chaar codde texxt25=一致致,請重新操操作; unsigneed chaar codde texxt26= 密碼更新成成功 ; 另外:vo
7、id deelay(uuint ttt) uchaar i; whille(tt) for(i=0;ii125;i+); void innitiallize511() SCON= 0 x500; /串串口方式1/RENN=1; 允允許接收 PCON=0 x80; /SMMOD=1 TMOD= 0 x200; /定定時器1定時時方式2 TH1= 0 xff; /111.05922MHz 模塊默認波波特率為577600bpps TL1= 0 xff; TR1= 1; /啟動定定時器unsigneed chaar Keyycan(vvoid) /按鍵掃掃描程序 PP1.0P1.3為為行線 P11.4
8、-PP1.7為列列線 unsiggned cchar rrcode, ccodde; P1 = 0 xF0; / 發(fā)發(fā)全0行掃描描碼,列線輸輸入 if(PP1&0 xFF0) != 0 xF00) / 若有鍵按下下 dellay(1);/ 延延時去抖動 if(P1&00 xF0) != 0 xxF0) rcodee = 0 xxFE; / 逐行掃描初初值 whiile(rrcode&0 x10) != 00) P1 = rcodee; / 輸出出行掃描碼 iif(P11&0 xF00) != 0 xF0) / 本本行有鍵按下下 ccodee = (PP1&0 xFF0)|0 xx0F; /do
9、; whiile(PP1&0 xFF0) != 0 xF00); /等待鍵釋放放 returrn (rcodee) + (ccodde); / 返回回鍵編碼 elsse rcoode = (rcodde1)|0 x011; / 行掃描碼左左移一位 returrn 0; / 無鍵鍵按下,返回回值為0void KeeyDeall(unsiigned char Key) /unnsigneed chaar n; if(KKey!=00) swwitch(Key) caase 0 xx11: KK=1; bbreak; caase 0 xx21: KK=2; bbreak; caase 0 xx41:
10、 KK=3; bbreak; caase 0 xx81: breakk; /K=funnguanlliyuann; caase 0 xx12: KK=4; bbreak; caase 0 xx22: KK=5; bbreak; caase 0 xx42: KK=6; bbreak; caase 0 xx82: KK=34;bbreak;/K=ffunshaanchu; caase 0 xx14: KK=7; bbreak; caase 0 xx24: KK=8; bbreak; caase 0 xx44: KK=9; bbreak; caase 0 xx84: breakk;/K=ffuntu
11、iichu; caase 0 xx18: breakk;/K=sshuazhhiwen caase 0 xx28: KK=0; bbreak; caase 0 xx48: breakk; caase 0 xx88: breakk;/K=ffunqueeren; deefaultt: breeak; /*/112864/讀128664忙void ReeadBussy(voiid)unsignned chhar chh; cheak:Dbus=0 xff;RS=0;RW=1;E1=1;ch=Dbuus;E1=0;ch=ch|0 x7f;if(ch!=0 x7ff)goto ccheak;/向LCD
12、寫寫命令void WrriteCoommandd(uchaar commmand)ReadBuusy();RW=0;Dbus=ccommannd;E1=1;E1=0;/向LCD寫寫數(shù)據(jù)void WrriteDaata(ucchar LLcd_daata)ReadBuusy();RS=1;RW=0;Dbus=LLcd_daata;E1=1;E1=0;/清屏函數(shù)清清DDRAMMvoid Cllrram (voidd) WriteeCommaand(0 xx01);/LCD122864初始始化程序void Lccd_intt()WriteCCommannd(0 x330);/30基本指指令動作Wri
13、teCCommannd(0 x00c);/開顯示示,關(guān)游標WriteCCommannd(0 x001);/清屏,地地址指針指向向00HWriteCCommannd(0 x002);/LCD122864顯示示時間void pllaytimme()uchar i,n3,n4,y11,y2,rr1,r2,s1,s22,f1,ff2,m1,m2;WriteCCommannd(0 x880);/指定第第一行顯示位位置for(i=0;i4; n4=aa6&00 x0f;WriteCCommannd(0 x990);/指定第第二行顯示位位置WriteDData(00 x32);WriteeData(0 x3
14、0);WritteDataa(0 x300+n3);WriteeData(0 x30+n4);for(i=0;i4; y2=aa4&00 x0f;WriteDData(00 x30+yy1);WrriteDaata(0 xx30+y22);for(i=0;i4; r2=aa3&00 x0f;WriteDData(00 x30+rr1);WrriteDaata(0 xx30+r22);for(i=0;i22;i+)WriteeData(rii); WriteCCommannd(0 x888); /指定第第三行顯示位位置for(i=0;i4;s2=a2&0 xx0f; ff1=a114;f2=a1
15、&0 xx0f; mm1=a004;m2=a0&0 xx0f;WriteCCommannd(0 x998); /指定第第四行顯示位位置WriteDData(00 x30+ss1);WrriteDaata(0 xx30+s22);WriiteDatta(maoo);WriiteDatta(0 x330+f1);WritteDataa(0 x300+f2);WriteDData(mmao);WWriteDData(00 x30+mm1);WrriteDaata(0 xx30+m22);/*/112864/*/ds13002控制uchar rr1302() /讀讀數(shù)據(jù)ds11302ucharr i;
16、for(i=0;i=1; B7 = IO; SCLK=1; SCLK=0; returnn B;void w11302(uuchar co) / 寫dds13022 單字節(jié) uchaar i; B = co; for(i=0;ii=1; void w(ucharr a, uuchar d) /尋址址,寫數(shù) RSTT = 0; SCLLK = 00; RSTT = 1; w13302(a); w13302(d); SCLLK = 11; RSTT = 0;uchar rr(uchaar a) /尋址址,讀數(shù) uchaar r; RSTT = 0; SCLLK = 00; RSTT = 1; w1
17、3302(a); r=rr1302(); SCLLK = 11; RSTT = 0;returnn r;void wcclo(ucchar *p) /寫多多字節(jié)ds11302 uchaar i; w(0 xx8e,0 xx00); /寫允許 RST=0; SCLKK=0; RST=1;w1302(0 xbe); /寫寫多字節(jié)命令令 for(i=0;i88;i+)w1302(*(p+ii); /寫寫時鐘數(shù)據(jù) w(0 x000,0 x500); /? 啟動定時器器 SCLK=11;RST=0;void rcclo(ucchar *p)/讀出多多字節(jié)ds11302 uchaar i; RST=0;
18、SCLKK=0; RST=1; w13002(0 xbbf); for(i=0;ii7;i+) *(p+i) = r13022(); /讀讀出時鐘數(shù)據(jù)據(jù) SCLLK=1;RST=0;/*/void SFFG_gettimagee() /錄入入指紋圖像 uchaar i; SBUFF=0 xeff; whille(TI=0); TI=00; SBUFF=0X011; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0);
19、TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0X011; whille(TI=0); TI=00; SBUFF=0X000; whille(TI=0); TI=00; SBUFF=0X033; whille(TI=0); TI=00; SBUFF=0X011; whille(TI=0); TI=00; SBUFF=0X000; whille(TI=0); TI=00; summmaf=0 xx05; SBUFF=summmaf; whille(TI=0); TI=00; for(i=0;ii9;i+) whiile(RII=0); RI=0;
20、whille(RI=0); RI=00; querrenma=SBUF; whille(RI=0); RI=00; sum1=SBBUF; whille(RI=0); RI=00; sum0=SBBUF; summmas=(ssum18; SBUFF=sum1; whille(TI=0) TI=00; SBUFF=sum0; whille(TI=0) TI=00; for(i=0;ii9;i+) whiile(RII=0); RI=0; whille(RI=0); RI=00; querrenma=SBUF; whille(RI=0); RI=00; sum1=SBBUF; whille(RI
21、=0); RI=00; sum0=SBBUF; summmas=(ssum18)+sum00; void SFFG_reggmodell() /合并并生成模板 uchaar i; SBUFF=0 xeff; whille(TI=0); TI=00; SBUFF=0X011; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF
22、=0X011; whille(TI=0); TI=00; SBUFF=0X000; whille(TI=0); TI=00; SBUFF=0X033; whille(TI=0); TI=00; SBUFF=0X055; whille(TI=0); TI=00; SBUFF=0X000; whille(TI=0); TI=00; summmaf=0 xx09; SBUFF=summmaf; /校驗和 whille(TI=0); TI=00; for(i=0;ii9;i+) whiile(RII=0); RI=0; whille(RI=0); RI=00; querrenma=SBUF; whil
23、le(RI=0); RI=00; sum1=SBBUF; whille(RI=0); RI=00; sum0=SBBUF; summmas=(ssum1=10111 queerenmaa=0 x188? uchaar i,IID1,IDD2; SBUFF=0 xeff; whille(TI=0); TI=00; SBUFF=0X011; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0
24、XFFF; whille(TI=0); TI=00; SBUFF=0X011; whille(TI=0); TI=00; SBUFF=0X000; whille(TI=0); TI=00; SBUFF=0X066; whille(TI=0); TI=00; SBUFF=0X066; whille(TI=0); TI=00; SBUFF=0X011; whille(TI=0); TI=00; ID1=pageIID;ID22=pageeID88; SBUFF=ID2; whille(TI=0); TI=00; SBUFF=ID1; whille(TI=0); TI=00; summmaf=0 x
25、x0e+IDD1+ID22; sum0=suummaf; sum1=suummaf8; SBUFF=sum1; whille(TI=0); TI=00; SBUFF=sum0; whille(TI=0); TI=00; for(i=0;ii9;i+) whiile(RII=0); RI=0; whille(RI=0); RI=00; querrenma=SBUF; whille(RI=0); RI=00; sum1=SBBUF; whille(RI=0); RI=00; sum0=SBBUF; summmas=(ssum18)+sum00; void SFFG_emppty() /清空指紋庫庫
26、 uchaar i; SBUFF=0 xeff; whille(TI=0); TI=00; SBUFF=0X011; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0X011; whille(TI=0); TI=00; SBUFF=0X000; whille(TI=0); TI=00; SBUFF=0X033; whi
27、lle(TI=0); TI=00; SBUFF=0X0dd; whille(TI=0); TI=00; SBUFF=0X000; whille(TI=0); TI=00; summmaf=0 xx11; SBUFF=summmaf; whille(TI=0); TI=00; for(i=0;ii9;i+) whiile(RII=0); RI=0; whille(RI=0); RI=00; querrenma=SBUF; whille(RI=0); RI=00; sum1=SBBUF; whille(RI=0); RI=00; sum0=SBBUF; summmas=(ssum12555都會使程
28、序序卡 uchaar i,IID1,IDD2; SBUFF=0 xeff; whille(TI=0); TI=00; SBUFF=0X011; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0X011; whille(TI=0); TI=00; SBUFF=0X000; whille(TI=0); TI=00; SBU
29、FF=0X088; whille(TI=0); TI=00; SBUFF=0X1bb; whille(TI=0); TI=00; SBUFF=buffferID; whille(TI=0); TI=00; SBUFF=0X000; whille(TI=0); TI=00; SBUFF=0; whille(TI=0); TI=00; SBUFF=0X000; whille(TI=0); TI=00; SBUFF=180; whille(TI=0); TI=00; summmaf=9+0 x1b+buffeerID+1180; sum0=suummaf; sum1=suummaf8; SBUFF=
30、sum1; whille(TI=0); TI=00; SBUFF=sum0; whille(TI=0); TI=00; for(i=0;ii9;i+) whiile(RII=0); RI=0; whille(RI=0); RI=00; querrenma=SBUF; whille(RI=0); RI=00; ID1=SBUF; whille(RI=0); RI=00; ID2=SBUF; /接接收到的IDD號 whille(RI=0); RI=00; whille(RI=0); RI=00; whille(RI=0); RI=00; sum1=SBBUF; whille(RI=0); RI=0
31、0; sum0=SBBUF; summmas=(ssum18)+sum00; /PaageID=ID1; PageeID=(IID188)+ID22;void SFFG_enrroll() /自動動注冊模板返返回存儲IDD =錄圖圖像+合并生生成模板+儲儲存模板 uchaar i,IID1,IDD2; SBUFF=0 xeff; whille(TI=0); TI=00; SBUFF=0X011; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0XFFF
32、; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0X011; whille(TI=0); TI=00; SBUFF=0X000; whille(TI=0); TI=00; SBUFF=0X033; whille(TI=0); TI=00; SBUFF=0X100; whille(TI=0); TI=00; SBUFF=0X000; whille(TI=0); TI=00; summmaf=0 xx14; SBUFF=summmaf; /校驗和 whille(TI=0); TI=00; for(i=0;ii9;i+)
33、whiile(RII=0); RI=0; whille(RI=0); RI=00; querrenma=SBUF; whille(RI=0); RI=00; ID1=SBUF; whille(RI=0); RI=00; ID2=SBUF; whille(RI=0); RI=00; sum1=SBBUF; whille(RI=0); RI=00; sum0=SBBUF; summmas=(ssum18)+sum00; /PaageID=ID1; PageeID=(IID188; SBUFF=ID2; whille(TI=0); TI=00; SBUFF=ID1; whille(TI=0); TI
34、=00; SBUFF=0X000; whille(TI=0); TI=00; SBUFF=1; whille(TI=0); TI=00; summmaf=0 xx15+IDD1+ID22; sum0=suummaf; sum1=suummaf8; SBUFF=sum1; whille(TI=0); TI=00; SBUFF=sum0; whille(TI=0); TI=00; for(i=0;ii9;i+) whiile(RII=0); RI=0; whille(RI=0); RI=00; querrenma=SBUF; whille(RI=0); RI=00; sum1=SBBUF; whi
35、lle(RI=0); RI=00; sum0=SBBUF; summmas=(ssum18)+sum00; void SFFG_wriiteregg(uchaar N) /設(shè)置波特率率 uchaar i; SBUFF=0 xeff; whille(TI=0); TI=00; SBUFF=0X011; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0);
36、 TI=00; SBUFF=0X011; whille(TI=0); TI=00; SBUFF=0X000; whille(TI=0); TI=00; SBUFF=0X055; whille(TI=0); TI=00; SBUFF=0X0ee; whille(TI=0); TI=00; SBUFF=4; whille(TI=0); TI=00; SBUFF=N; whille(TI=0); TI=00; summmaf=0 xx1a; sum0=suummaf; sum1=0; SBUFF=sum1; whille(TI=0); TI=00; SBUFF=sum0; whille(TI=0);
37、 TI=00; for(i=0;ii9;i+) whiile(RII=0); RI=0; whille(RI=0); RI=00; querrenma=SBUF; whille(RI=0); RI=00; sum1=SBBUF; whille(RI=0); RI=00; sum0=SBBUF; summmas=(ssum18)+sum00; void SFFG_ideentifyy()/自動驗驗證指紋 錄圖圖像+生成特特征+搜索 uchaar i,IID1,IDD2; SBUFF=0 xeff; whille(TI=0); TI=00; SBUFF=0X011; whille(TI=0); T
38、I=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0XFFF; whille(TI=0); TI=00; SBUFF=0X011; whille(TI=0); TI=00; SBUFF=0X000; whille(TI=0); TI=00; SBUFF=0X033; whille(TI=0); TI=00; SBUFF=0X111; whille(TI=0); TI=00; SBUFF=0X000; whille(TI
39、=0); TI=00; summmaf=0 xx15; SBUFF=summmaf; /校驗和 whille(TI=0); TI=00; for(i=0;ii9;i+) whiile(RII=0); RI=0; whille(RI=0); RI=00; querrenma=SBUF; whille(RI=0); RI=00; ID1=SBUF; whille(RI=0); RI=00; ID2=SBUF; whille(RI=0); RI=00; whille(RI=0); RI=00; /得得分 whille(RI=0); RI=00; sum1=SBBUF; whille(RI=0); R
40、I=00; sum0=SBBUF; summmas=(ssum18)+sum00; /PaageID=ID1; PageeID=(IID188)+ID22;void shhuazhiiwen() uchhar i,IDs1,IDs2,IDs3;Clrramm();WriteCCommannd(0 x990);/指定第第二行顯示位位置for(i=0;i116;i+)WriteDData(ttext1i); /顯顯示LCD112864并并行顯示請按指紋/SFG_getimmage();/SFG_genchhar(1);/SFG_fastssearchh(1); SFG_iidentiify();
41、whilee(querrenma=2) SFG_iidentiify(); if(qquerennma=00) Clrramm();WriteCCommannd(0 x990);/指定第第二行顯示位位置for(i=0;i116;i+)WriteDData(ttext188i); /顯示LCDD128644并行顯示指紋通過 門已開 IDss1=PaggeID/1100;IDDs2=PaageID/10%100;IDs33=PageeID%100;WriteCCommannd(0 x888);/指定第第三行顯示位位置for(i=0;i110;i+)WriteDData(ttext177i); /顯
42、示LCDD128644并行顯示 編號為: WriteDData(00 x30+IIDs1);WriteeData(0 x30+IDs2);WritteDataa(0 x300+IDs33); jidiianqi=0; /開門 elsee if(qquerennma=99) Clrramm();WriteCCommannd(0 x990);/指定第第二行顯示位位置for(i=0;i116;i+)WriteDData(ttext122i); /顯示LCDD128644并行顯示沒搜索到指指紋 elsee Clrramm();WriteCCommannd(0 x990);/指定第第二行顯示位位置for
43、(i=0;i116;i+)WriteDData(ttext166i); /顯示LCDD128644并行顯示接收包出錯錯 WriteCCommannd(0 x998);/指定第第四行顯示位位置for(i=0;i116;i+)WriteDData(ttext4i); /顯顯示LCD112864并并行顯示請按任意鍵鍵繼續(xù)while(Keycaan()=0);void adddfingger() ucharr i,IDDa1,IDDa2,IDDa3; Clrraam(); WritteCommmand(00 x90);/指定第第二行顯示位位置 for(i=0;ii16;ii+) WritteDataa
44、(textt1i); /顯示LCCD128664并行顯示示 請按指紋紋 SFG_ggetimaage(); whille(queerenmaa!=0) SFG_ggetimaage(); SFG_ggenchaar(bufffer1IID); initiializee51(); SFG_ffastseearch(buffeer1ID); whilee(querrenma=1) SFG_ffastseearch(buffeer1ID); if(quuerenmma=0) Clrrram(); WriiteCommmand(0 x90);/指定第第二行顯示位位置 forr(i=0;i16;i+)W
45、riteeData(text119i); /顯示LCCD128664并行顯示示 該指紋已已存儲 WriiteCommmand(0 x98);/指定第第四行顯示位位置 forr(i=0;i16;i+)WriteeData(text44i); /顯示LCDD128644并行顯示 請按任意意鍵繼續(xù) whille(Keyycan()=0); else if(quuerenmma=9) Clrrram(); WriiteCommmand(0 x90);/指定第第二行顯示位位置 forr(i=0;i16;i+)WriteeData(text22i); /顯示LCDD128644并行顯示 請再次按指指紋 S
46、FG_eenrolll(); whille(queerenmaa=2) SFG_eenrolll(); Clrrram(); if(qquerennma=00) IDaa1=PaggeID/1100;IDDa2=PaageID/10%100;IDa33=PageeID%100; WriiteCommmand(0 x90);/指定第第二行顯示位位置 forr(i=0;i16;i+)WriteeData(text33i); /顯示LCDD128644并行顯示 指紋采集集成功 WriiteCommmand(0 x88);/指定第第三行顯示位位置 forr(i=0;i10;i+)WriteeData(
47、text117i); /顯示LCCD128664并行顯示示 編號為:pgaeIIDWriteeData(0 x30+IDa1);WritteDataa(0 x300+IDa22);WriiteDatta(0 x330+IDaa3); elsee if(qquerennma!=00) WriiteCommmand(0 x90);/指定第第二行顯示位位置 forr(i=0;i16;i+)WriteeData(text55i); /顯示LCDD128644并行顯示 指紋采集集失敗 WritteCommmand(00 x88);/指定第第三行顯示位位置 forr(i=0;i16;i+)WriteeDa
48、ta(text114i); /顯示LCCD128664并行顯示示 請重新采采集 WriiteCommmand(0 x98);/指定第第四行顯示位位置 forr(i=0;i16;i+)WriteeData(text44i); /顯示LCDD128644并行顯示 請按任意意鍵繼續(xù) whilee(Keyccan()=0); Clrrram();void deeletfiinger() ucharr i,j=0; Clrraam(); WriiteCommmand(0 x90);/指定第第二行顯示位位置 forr(i=0;i16;i+)WriteeData(text66i); /顯示LCDD12864
49、4并行顯示 請輸入刪刪去的指紋號號 forr(i=0;i=0)&(K=99) dzj=K; if(j=2)PageIDD=dz22+dz1*100+dz00*1000;if(j=1)PageIDD=dz11+dz0*100;if(j=0)PageIDD=dz00; SFG_ddeletcchar(PPageIDD); if(qquerennma=00) Clrrram(); WriiteCommmand(0 x90);/指定第第二行顯示位位置 顯示刪除除成功 forr(i=0;i16;i+) WriiteDatta(texxt7i); /顯示LLCD128864并行顯顯示 elsee Clrr
50、ram(); WriiteCommmand(0 x90);/指定第第二行顯示位位置 顯示刪除除失敗 forr(i=0;i16;i+) WriiteDatta(texxt15ii); /顯示示LCD122864并行行顯示 WriiteCommmand(0 x88);/指定第第三行顯示位位置 forr(i=0;i16;i+) WriiteDatta(texxt4i); /顯示LLCD128864并行顯顯示 請按任任意鍵繼續(xù) whiile(Keeycan()=0); Clrraam();void gaaimimaa() uchhar i,j,mimma16,mimaa26; Cllrram(); W
51、riiteCommmand(0 x90);/指定第第二行顯示位位置 forr(i=0;i16;i+)WriteeData(text220i); /顯示LCCD128664并行顯示示 請輸入密密碼 forr(i=0;i=0)&(K=99) mima11j=KK; if(j6) WrriteCoommandd(0 x888+j);/指定第第三行顯示位位置 WritteDataa(0 x0ff); +j; if(j=7) j=6; /#yiinhuanng /顯示LCDD128644并行顯示 if(KK=34)/按了刪刪除鍵 iif(j=0) WritteCommmand(00 x88);/指定第第
52、三行顯示位位置 WWriteDData(00 x20);elsee j; WritteCommmand(00 x88+jj); /指定第三三行顯示位置置 WWriteDData(00 x20); Cllrram(); Cllrram(); j=0; WriiteCommmand(0 x90);/指定第第二行顯示位位置 forr(i=0;i16;i+)WriteeData(text223i); /顯示LCCD128664并行顯示示 請再次輸輸入密碼 forr(i=0;i=0)&(K=99) mima22j=KK; if(j6) WrriteCoommandd(0 x888+j);/指定第第三行顯
53、示位位置 WritteDataa(0 x0ff); +j; if(j=7) j=6; /#yiinhuanng /顯示LCDD128644并行顯示 if(KK=34)/按了刪刪除鍵 iif(j=0) WritteCommmand(00 x88);/指定第第三行顯示位位置 WWriteDData(00 x20);elsee j; WritteCommmand(00 x88+jj); /指定第三三行顯示位置置 WWriteDData(00 x20); Cllrram();if(miima100=miima200)&(mima111=mima221)&(mimma12=mimma22)&(mmima13=mmima23)&(mimaa14=mimaa24)&(miima155=miima255) forr(i=0;i6;ii+) mimmaIDii=mimma1i; WriiteCommmand(0 x80);/指定第第二行顯示位位置 forr(i=0;i16;i+)WriteeData(text226i); /顯示LCCD128664并行顯示示 密碼更更新成功 WriiteCommmand(0 x88);/指定第第二行顯示位位置 forr(i=0;i16;i+)WriteeData(text44i); /顯示LCDD128644并行顯示 請按任任意鍵
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 江蘇省南通市通州區(qū)2024-2025學(xué)年上學(xué)期九年級英語期末學(xué)業(yè)水平質(zhì)量監(jiān)測試題(含答案無聽力音頻含原文)
- 2025壁畫數(shù)字技術(shù)應(yīng)用與服務(wù)合作協(xié)議范本3篇
- 2024數(shù)據(jù)資源整合與編輯錄入服務(wù)合同書3篇
- 2024版飯店承包合同書范本
- 2024版建筑工程中介服務(wù)合同合同版B版
- 福建省南平市莒口中學(xué)2020-2021學(xué)年高一語文上學(xué)期期末試題含解析
- 2024版?zhèn)€人擔(dān)保借款合同協(xié)議書
- 2024電子商務(wù)平臺業(yè)務(wù)外包合同2篇
- 2024年分包合同(62篇)
- 2024版租賃無人機合同2篇
- 工程熱力學(xué)英文雙語版
- 園林景觀工程關(guān)鍵施工技術(shù)、措施
- 談?wù)勎㈦娪皠?chuàng)作課件
- DRG付費常見九大問題答疑
- 中科院2022年物理化學(xué)(甲)考研真題(含答案)
- 《熱電阻溫度傳感器》課件
- 抖音酒店直播可行性方案
- 小學(xué)五年級數(shù)學(xué)上冊寒假作業(yè)天天練30套試題(可打印)
- 北京市房山區(qū)2023-2024學(xué)年三年級上學(xué)期期末數(shù)學(xué)試卷
- 婦產(chǎn)科課件-子宮內(nèi)膜息肉臨床診療路徑(2022版)解讀
- 人教版六年級數(shù)學(xué)上冊典型例題系列之第三單元分數(shù)除法應(yīng)用題部分拓展篇(原卷版)
評論
0/150
提交評論