This is a PN532 NFC library for Raspberry Pi.
- Support I2C, SPI and HSU of PN532
- Easy to understand how the PN532 chip works
- Plug the PN532 NFC Hat to your Pi.
- The module supports I2C, SPI and HSU.
- on I2C:
Then set
MOSI/SDA/TX Pin to Pi's SDA NSS/SCL/RX Pin to Pi's SCL
SEL0: ON
andSEL1: OFF
- on SPI:
Then set
MOSI/SDA/TX Pin to Pi's MOSI NSS/SCL/RX Pin to Pi's CE0
SEL0: OFF
andSEL1: ON
- on HSU(UART):
Then set
MOSI/SDA/TX Pin to Pi's RX NSS/SCL/RX Pin to Pi's TX
SEL0: OFF
andSEL1: OFF
- Run the example with
python3 example.py
- With waving a 13.56MHz NFC card, the UID of the card will be printed.