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!¶
main.cpp
#include "mbed.h"
#include "RFID.h"
ID12RFID rfid(p13, p14);
int main() {
while (1){
int id = rfid.read();
printf("Tag ID = %d\n", id);
}
}


Library¶
A library for the ID12 RFID reader, returning the ID as a 32-bit int.