This application provides a set of demos with X-NUCLEO-NFC01A1 expansion board.
Dependencies: NDefLib X_NUCLEO_NFC01A1 mbed
Fork of X-MBED-NFC1 by
This application provides a set of demos with X-NUCLEO-NFC01A1 expansion board.
The available demos are:
- SAMPLE_WRITE_URL: write a tag with the ST home page URL
- SAMPLE_COUNT_CLICK: create a custom tag to count and report the user button clicks.
- SAMPLE_WRITE_AND_CHANGE_ALL: write a tag with all the supported records and update the tag contents when the user button is pressed.
- SAMPLE_LOCK_TAG_CONTENT: use the M24SR component API to set the NFC tag as read-only.
To enable the different demos comment/uncomment the SAMPLE_* macros provided in main.cpp .
X_NUCLEO_NFC01A1.cpp@0:674813bd5ec9, 2015-11-19 (annotated)
- Committer:
- giovannivisentini
- Date:
- Thu Nov 19 08:50:18 2015 +0000
- Revision:
- 0:674813bd5ec9
- Child:
- 1:6d202b62ed68
first commit,
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| giovannivisentini | 0:674813bd5ec9 | 1 | /* |
| giovannivisentini | 0:674813bd5ec9 | 2 | * X_NUCLEO_NFC01A1.cpp |
| giovannivisentini | 0:674813bd5ec9 | 3 | * |
| giovannivisentini | 0:674813bd5ec9 | 4 | * Created on: Nov 5, 2015 |
| giovannivisentini | 0:674813bd5ec9 | 5 | * Author: giovanni visentini |
| giovannivisentini | 0:674813bd5ec9 | 6 | */ |
| giovannivisentini | 0:674813bd5ec9 | 7 | |
| giovannivisentini | 0:674813bd5ec9 | 8 | #include <X_NUCLEO_NFC01A1.h> |
| giovannivisentini | 0:674813bd5ec9 | 9 | |
| giovannivisentini | 0:674813bd5ec9 | 10 | X_NUCLEO_NFC01A1 *X_NUCLEO_NFC01A1::instance=NULL; |
| giovannivisentini | 0:674813bd5ec9 | 11 | |
| giovannivisentini | 0:674813bd5ec9 | 12 | X_NUCLEO_NFC01A1* X_NUCLEO_NFC01A1::Instance(I2C &devI2C, |
| giovannivisentini | 0:674813bd5ec9 | 13 | const PinName &gpoName,const PinName &RFDisableName, |
| giovannivisentini | 0:674813bd5ec9 | 14 | const PinName &led1Name,const PinName &led2Name,const PinName &led3Name){ |
| giovannivisentini | 0:674813bd5ec9 | 15 | if(instance==NULL) |
| giovannivisentini | 0:674813bd5ec9 | 16 | instance = new X_NUCLEO_NFC01A1(devI2C,gpoName,RFDisableName,led1Name,led2Name,led3Name); |
| giovannivisentini | 0:674813bd5ec9 | 17 | return instance; |
| giovannivisentini | 0:674813bd5ec9 | 18 | } |
| giovannivisentini | 0:674813bd5ec9 | 19 |
