Hello World for the ID12 RFID reader library
Dependents: ID12RFID_HelloWorld2
Revision 1:2c017f3d2d04, committed 2010-11-23
- Comitter:
- simon
- Date:
- Tue Nov 23 17:17:56 2010 +0000
- Parent:
- 0:df71eb8a3c0b
- Commit message:
- Version using new library
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r df71eb8a3c0b -r 2c017f3d2d04 main.cpp --- a/main.cpp Thu Jun 03 13:25:00 2010 +0000 +++ b/main.cpp Tue Nov 23 17:17:56 2010 +0000 @@ -1,11 +1,12 @@ -// Print RFID tag numbers +// Hello World for printing RFID tag numbers #include "mbed.h" #include "ID12RFID.h" -ID12RFID rfid(p10); // uart rx +ID12RFID rfid(p14); // uart rx int main() { + printf("Hello World\n"); while(1) { if(rfid.readable()) { printf("RFID Tag number : %d\n", rfid.read());