Program to greet (via console) the user in response to their tag id

Dependencies:   ID12RFID mbed

Fork of ID12RFID_HelloWorld by Simon Ford

Files at this revision

API Documentation at this revision

Comitter:
simon
Date:
Thu Jun 03 13:25:00 2010 +0000
Child:
1:2c017f3d2d04
Commit message:

Changed in this revision

ID12RFID.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
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ID12RFID.lib	Thu Jun 03 13:25:00 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/simon/code/ID12RFID/#f04afa911cf5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Jun 03 13:25:00 2010 +0000
@@ -0,0 +1,14 @@
+// Print RFID tag numbers
+
+#include "mbed.h"
+#include "ID12RFID.h"
+
+ID12RFID rfid(p10); // uart rx
+
+int main() {
+    while(1) {
+        if(rfid.readable()) {
+            printf("RFID Tag number : %d\n", rfid.read());             
+        }
+    }
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Jun 03 13:25:00 2010 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/029aa53d7323