You are viewing an older revision! See the latest version
ID12 RFID Reader
An RFID reader module that reads tags and sends the ID as a 9600-8N1 serial stream
Hello World!¶
Import program
00001 // Hello World for printing RFID tag numbers 00002 00003 #include "mbed.h" 00004 #include "ID12RFID.h" 00005 00006 ID12RFID rfid(p14); // uart rx 00007 00008 int main() { 00009 printf("Hello World\n"); 00010 while(1) { 00011 if(rfid.readable()) { 00012 printf("RFID Tag number : %d\n", rfid.read()); 00013 } 00014 } 00015 }

Library¶
The mbed library for the ID12 RFID reader, returning the 32-bits of the ID as an int