Valentin Bruchet
/
a_ID12RFID_HelloWorld
RFID
Revision 2:0328f7d52450, committed 2021-05-05
- Comitter:
- valentinbruchet
- Date:
- Wed May 05 08:16:02 2021 +0000
- Parent:
- 1:2c017f3d2d04
- Commit message:
- RFID;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 2c017f3d2d04 -r 0328f7d52450 main.cpp --- 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()); } + } }
diff -r 2c017f3d2d04 -r 0328f7d52450 mbed.bld --- a/mbed.bld Tue Nov 23 17:17:56 2010 +0000 +++ b/mbed.bld Wed May 05 08:16:02 2021 +0000 @@ -1,1 +1,1 @@ -http://mbed.org/users/mbed_official/code/mbed/builds/029aa53d7323 +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file