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 Giovanni Visentini

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 .

Committer:
giovannivisentini
Date:
Thu Dec 03 13:44:40 2015 +0000
Revision:
4:f40b3505070c
Parent:
3:f7f818ee694e
Child:
5:3b300c8235b7
move the driver file in a separate library + split the sample in different files

Who changed what in which revision?

UserRevisionLine numberNew contents of line
giovannivisentini 4:f40b3505070c 1 #include "Samples/Samples.h"
giovannivisentini 4:f40b3505070c 2
giovannivisentini 4:f40b3505070c 3 //#define SAMPLE_WRITE_URL
giovannivisentini 4:f40b3505070c 4 //#define SAMPLE_COUNT_CLICK
giovannivisentini 4:f40b3505070c 5 #define SAMPLE_WRITE_AND_CHANGE_ALL
giovannivisentini 4:f40b3505070c 6
giovannivisentini 4:f40b3505070c 7 int main(void)
giovannivisentini 4:f40b3505070c 8 {
giovannivisentini 4:f40b3505070c 9 #ifdef SAMPLE_WRITE_URL
giovannivisentini 4:f40b3505070c 10 sample_writeUrl();
giovannivisentini 4:f40b3505070c 11 #endif /* SAMPLE_WRITE_URL */
giovannivisentini 1:6d202b62ed68 12
giovannivisentini 4:f40b3505070c 13 #ifdef SAMPLE_COUNT_CLICK
giovannivisentini 4:f40b3505070c 14 sample_countClick();
giovannivisentini 4:f40b3505070c 15 #endif /* SAMPLE_COUNT_CLICK */
giovannivisentini 2:0648c1561eb2 16
giovannivisentini 4:f40b3505070c 17 #ifdef SAMPLE_WRITE_AND_CHANGE_ALL
giovannivisentini 4:f40b3505070c 18 sample_writeAndChangeAll();
giovannivisentini 4:f40b3505070c 19 #endif /* SAMPLE_WRITE_AND_CHANGE_ALL */
giovannivisentini 4:f40b3505070c 20 }