Sam - This one.

Dependencies:   MFRC522 Terminal mbed

Files at this revision

API Documentation at this revision

Comitter:
CO657_dmd20
Date:
Sun Oct 23 20:28:36 2016 +0000
Commit message:
ok. this sort of works for the RDM6300. connect RDM tx/rx to UART tx/rx on the board (D0 and D1) and give it 5v from the j3 header and bob's your uncle. doesn't read properly yet but does read the id# in a wanky way.

Changed in this revision

MFRC522.lib Show annotated file Show diff for this revision Revisions of this file
Terminal.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/MFRC522.lib	Sun Oct 23 20:28:36 2016 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/users/AtomX/code/MFRC522/#63d729186747
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Terminal.lib	Sun Oct 23 20:28:36 2016 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/CO657_dmd20/code/Terminal/#77e3f1825318
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sun Oct 23 20:28:36 2016 +0000
@@ -0,0 +1,68 @@
+
+
+#include "mbed.h"
+#include "MFRC522.h"
+#include "Terminal.h"
+#define RF_RESET PTD0
+
+Terminal PCout(USBTX, USBRX);
+//MFRC522 RFIDReader(PTD2, PTD3, PTD1, PTE25, PTD0);
+Serial device(D1, D0);
+
+
+int main (void){
+    PCout.baud (38400);
+    PCout.cls();
+    wait_ms(50);
+
+
+    
+    while(1){
+            char i[32];
+            wait_ms(30);
+            PCout.printf("done");
+        if(device.readable()){
+            device.gets(i, 32);
+            PCout.printf("'%s'\n", i );
+            }
+    
+
+  }  
+    
+    
+    
+    
+    
+
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Sun Oct 23 20:28:36 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/25aea2a3f4e3
\ No newline at end of file