Code samples for Arduino with NFC Dynamic Tag

October 26th, 2012

Thanks to you all for your interest in the NFC Dynamic Tag! To illustrate a bit more how the NFC Dynamic tag can be used with Arduino, we have posted some samples below.

  • SampleSketch_ChangingSmartposter_ButtonPress”:
    This sketch cycles through a number of NFC Smartposters and changes the data when a button attached to the Arduino is pressed. The sample emulates 3 different tags with up to 80 bytes of data each.
  • SampleSketch_WriteMeAndFlash” and “SampleSketch_WriteMeAndFlash_callback
    These sketches detect when an NFC device writes to the NFC Dynamic tag and start flashing an LED once a write is detected. “WriteMeAndFlash”  does the write detection in the main loop, “WriteMeAndFlash_callback” uses a callback function.
  • SampleSketch_LCD_RW_Counter”:
    This is an Arduino sketch that simply shows the read/write counts received via the NFC Dynamic Tag on an LCD display and updates the count when an NFC device reads from or writes to the Dynamic Tag. The write callback in this sample is only used to increase the write count that is displayed. The actual data that is received is not processed.