Marco Belliard / Mbed 2 deprecated LCD_RFID_Key_KeyPad_Emic

Dependencies:   mbed ID12RFID TextLCD keypad

Revision:
0:b79709bfa1e2
Child:
1:43e6a97f7d4d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Sat Nov 20 22:40:16 2021 +0000
@@ -0,0 +1,30 @@
+/*Program Example8.5: TextLCD library example */
+
+
+#include "mbed.h"
+#include "TextLCD.h"
+#include "ID12RFID.h"
+Serial pc(USBTX, USBRX);
+ID12RFID rfid(p14); // uart rx
+TextLCD lcd(p15, p16, p21, p22, p23, p24); //rs,e,d0,d1,d2,d3
+
+int R;
+
+int main(){
+
+    while(1) {
+        lcd.cls();
+        if(rfid.readable()) {
+            R = rfid.read();
+            pc.printf("RFID Tag Number %d\n\r",R); 
+            lcd.printf("RFID Tag Number:%d \n",R);  
+            wait(1);
+            }
+        else {
+            pc.printf("Nothing Reading\n\r");
+            lcd.printf("Nothing Reading");
+            wait(1);
+            }
+        }
+    }
+