Fingerprint sensor example with WIZwiki-W7500. 1st release.
Dependencies: GT511C3 mbed-src
Fork of GT511C3test by
Diff: main.cpp
- Revision:
- 1:4a1be9379e92
- Parent:
- 0:b11b455d4997
- Child:
- 2:34a647292050
diff -r b11b455d4997 -r 4a1be9379e92 main.cpp --- a/main.cpp Fri Jan 03 06:20:34 2014 +0000 +++ b/main.cpp Fri Jan 03 06:34:26 2014 +0000 @@ -10,6 +10,7 @@ unsigned long Parameter; unsigned short Response; int sts = 0; + int count = 0; debug.format(8,Serial::None,1); debug.baud(115200); @@ -22,9 +23,14 @@ debug.printf("sts = %d,Response=0x%04x\n",sts,Response); while(1) { + debug.printf("Led\n"); + finger.SendCommand(count & 1,GT511C3::CMD_CmosLed); + sts = finger.RecvResponse(&Parameter,&Response); + debug.printf("sts = %d,Response=0x%04x\n",sts,Response); myled = 1; - wait(0.2); + wait(0.5); myled = 0; - wait(0.2); + wait(0.5); + count++; } }