Hello World for the ID12 RFID reader library

Dependencies:   mbed ID12RFID

Dependents:   ID12RFID_HelloWorld2

Files at this revision

API Documentation at this revision

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
--- 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());