Valentin Bruchet
/
a_ID12RFID_HelloWorld
RFID
Diff: main.cpp
- Revision:
- 2:0328f7d52450
- Parent:
- 1:2c017f3d2d04
--- a/main.cpp Tue Nov 23 17:17:56 2010 +0000 +++ b/main.cpp Wed May 05 08:16:02 2021 +0000 @@ -3,13 +3,16 @@ #include "mbed.h" #include "ID12RFID.h" -ID12RFID rfid(p14); // uart rx +ID12RFID rfid(PA_10); -int main() { - printf("Hello World\n"); - while(1) { - if(rfid.readable()) { - printf("RFID Tag number : %d\n", rfid.read()); +int main() +{ + while(1) + { + if(rfid.readable()) + { + printf("RFID Tag number : %d\n\r", rfid.read()); } + } }