

Create a quick-start node that reads an NFC tag to serve most common purposes.For the new type, create action nodes that correspond to the functions and methods provided by the third-party C++ library.Declare a dependency on a third-party C++ library so that XOD knows where to download it, saving users from manual install.There may be several instances of this node, one for each hardware module. ZIP library You just have to navigate to where the file was downloaded. Declare a new custom type pn532-device, which describes an RFIC/NFC module and how is it connected to an Arduino board. zip file, you can go to the Arduino IDE and go to Sketch > Include Library > Add.In order not to go into the details of working with tags, we will take the Adafruit-PN532 Arduino library and just wrap it in XOD nodes. Imagine that we want our Arduino board to turn the built-in led on or off when we bring an NFC tag, such as travel pass, to it.Ĭonsider that we have no XOD library to work with RFID/NFC scanner PN532 ( xod-dev/pn532-nfc), and try to make it on our own. Also, you need to have some experience of working with C++ libraries for Arduino.

To understand this guide, you have to know how to write C++ code in XOD and how to work with custom types. The Wire library allows you to communicate with I2C devices, often also called 2 wire or TWI (Two Wire Interface).

If you are looking for the Chapter 8 content for the 2nd Edition of Exploring Arduino, please click here. There is nothing displayed in serial monitor i dont see any Wire library in my Sketch/Include Library help please.
