![](/media/cache/profiles/ndu.jpg.50x50_q85.jpg)
NFC03A1 demo ISO15693 tags
Diff: main.cpp
- Revision:
- 0:cf083410d646
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Thu Nov 08 08:06:56 2018 +0000 @@ -0,0 +1,38 @@ +#include "mbed.h" +#include "main.h" +#include <CR95HF.h> + +DigitalOut ledMain(D13); +Serial pcDevice(USBTX, USBRX); + +Thread thread; + +/** + * @brief thread for nfc stuff + */ +void nfc_thread() +{ + CR95HF nfcDevice(D8,D2); + nfcDevice.Init(); + + while (true) { + nfcDevice.ConfigManagerTagHunting(); + wait(0.5); + } +} + + + +int main() +{ + pcDevice.baud(115200); + + pcDevice.printf("--- Startup NFC Demo ---\r\n"); + + thread.start(nfc_thread); + + while (true) { + ledMain = !ledMain; + wait(0.2); + } +}