Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: 4DGL-uLCD-SE GT511C3 SDFileSystem mbed
Fork of GT511C3_demo by
Revision 1:4c720110a2a8, committed 2015-12-01
- Comitter:
- beanmachine44
- Date:
- Tue Dec 01 20:49:44 2015 +0000
- Parent:
- 0:4bbfc068d864
- Child:
- 2:9a274c5defd2
- Commit message:
- Updated with the fixes to the library to properly work to enroll a template by downloading it and then using SetTemplate
Changed in this revision
| GT511C3.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/GT511C3.lib Tue Dec 01 18:20:31 2015 +0000 +++ b/GT511C3.lib Tue Dec 01 20:49:44 2015 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/beanmachine44/code/GT511C3/#aa0bd9bd1c56 +https://developer.mbed.org/users/beanmachine44/code/GT511C3/#8fa6daf39d91
--- a/main.cpp Tue Dec 01 18:20:31 2015 +0000
+++ b/main.cpp Tue Dec 01 20:49:44 2015 +0000
@@ -4,7 +4,7 @@
Serial debug(USBTX,USBRX);
DigitalOut myled(LED1);
-GT511C3 finger(p28,p27);
+GT511C3 finger(p9,p10);
int progress(int status,char *msg)
{
@@ -36,11 +36,14 @@
debug.printf("\n");
}
- finger.DeleteAllIDs();
+
int EnrollID = -1;
+ unsigned char data[498];
+ debug.printf("Deleting IDs = %d\n", finger.DeleteAllIDs());
finger.Enroll(EnrollID,progress);
- unsigned char data[496];
- finger.SetTemplate(11,data,496);
+ debug.printf("RecvData = %d\n", finger.RecvData(data, 498));
+ debug.printf("Data[0-3] = %X %X %X %X\n", data[0], data[1],data[2],data[3]);
+ debug.printf("SetTemplate = %d\n", finger.SetTemplate(11,data,498));
finger.CmosLed(1);
@@ -50,7 +53,7 @@
if(finger.Capture(1) != 0)
continue;
ID = finger.Identify();
- debug.printf("ID = %d\n",ID);
+ debug.printf("ID = %d\n",ID);
debug.printf("Remove finger\n");
finger.WaitPress(0);
}
