Hello World for the ID12 RFID reader library

Dependencies:   mbed ID12RFID

Dependents:   ID12RFID_HelloWorld2

main.cpp

Committer:
simon
Date:
2010-11-23
Revision:
1:2c017f3d2d04
Parent:
0:df71eb8a3c0b

File content as of revision 1:2c017f3d2d04:

// Hello World for printing RFID tag numbers

#include "mbed.h"
#include "ID12RFID.h"

ID12RFID rfid(p14); // uart rx

int main() {
    printf("Hello World\n");
    while(1) {
        if(rfid.readable()) {
            printf("RFID Tag number : %d\n", rfid.read());             
        }
    }
}