This is an Particle library for PN532 to use NFC technology. It is for NFC Shield, Xadow NFC and Grove - NFC.
- Support I2C, SPI and HSU of PN532
- Read/write Mifare Classic Card
- Works with Don's NDEF Library
- Communicate with android 4.0+(Lists of devices supported)
- Support mbed platform
- Card emulation (NFC Type 4 tag)
- To support more than one INFO PDU of P2P communication
- To read/write NFC Type 4 tag
-
Easiest Way
- Go to Particle Build and create a project
- Search for the library
- Add it to your project.
-
Easy way
- Download the zip file and extract the 4 folders(PN532, PN532_SPI, PN532_I2C and PN532_HSU) into Particle's libraries.
- Download Don's NDEF library for Particle, extract it into Particle's libraries and rename it to NDEF.
- Follow the examples of the two libraries.
-
Git way for Linux/Mac (recommended)
-
Get PN532 library and NDEF library
cd {My_Project}\libraries git clone --recursive https://github.com/Seeed-Studio/PN532.git NFC ln -s NFC/PN532 ./ ln -s NFC/PN532_SPI ./ ln -s NFC/PN532_I2C ./ ln -s NFC/PN532_HSU ./ ln -s NFC/NDEF ./
-
Follow the examples of the two libraries
-
It's based on Adafruit_NFCShield_I2C. Seeed Studio rewrote the library to make it easy to support different interfaces and platforms. @Don writes the NDEF library to make it more easy to use. @JiapengLi adds HSU interface. @awieser adds card emulation function.