Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed ID12RFID TextLCD keypad
Diff: main.cpp
- 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);
+ }
+ }
+ }
+