NFC
Dependencies: mbed NDefLib X_NUCLEO_NFC01A1
Diff: main.cpp
- Revision:
- 11:925a5a491a5c
- Parent:
- 7:435297dd022d
- Child:
- 14:1b99908360c5
diff -r 06f15612ce28 -r 925a5a491a5c main.cpp --- a/main.cpp Fri Jan 22 09:10:12 2016 +0000 +++ b/main.cpp Thu Jan 28 14:01:40 2016 +0000 @@ -34,7 +34,7 @@ * ****************************************************************************** */ - + #include "mbed.h" #include "X_NUCLEO_NFC01A1.h" @@ -48,7 +48,7 @@ //use default board pinout I2C i2cChannel(X_NUCLEO_NFC01A1::DEFAULT_SDA_PIN,X_NUCLEO_NFC01A1::DEFAULT_SDL_PIN); - X_NUCLEO_NFC01A1 *nfcNucleo = X_NUCLEO_NFC01A1::Instance(i2cChannel); + X_NUCLEO_NFC01A1 *nfcNucleo = X_NUCLEO_NFC01A1::Instance(i2cChannel,NULL); //retrieve the NdefLib interface NDefLib::NDefNfcTag& tag =nfcNucleo->getM24SR().getNDefTag(); @@ -82,4 +82,4 @@ }else printf("Error open Session\n\r"); -} +} \ No newline at end of file