Introduction
CircuitPython driver for the PN532 NFC/RFID Breakout and PN532 NFC/RFID Shield
Dependencies
This driver depends on:
Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.
Installing from PyPI
On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:
pip3 install adafruit-circuitpython-pn532
To install system-wide (this may be required in some cases):
sudo pip3 install adafruit-circuitpython-pn532
To install in a virtual environment in your current project:
mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install adafruit-circuitpython-pn532
Usage Example
Check examples/pn532_simpletest.py for usage example
Documentation
API documentation for this library can be found on Read the Docs.
For information on building library documentation, please check out this guide.
Contributing
Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.
Table of Contents
adafruit_pn532
BusyError
PN532
PN532.SAM_configuration()
PN532.call_function()
PN532.firmware_version
PN532.get_passive_target()
PN532.listen_for_passive_target()
PN532.mifare_classic_add_value_block()
PN532.mifare_classic_authenticate_block()
PN532.mifare_classic_fmt_value_block()
PN532.mifare_classic_get_value_block()
PN532.mifare_classic_read_block()
PN532.mifare_classic_sub_value_block()
PN532.mifare_classic_write_block()
PN532.ntag2xx_read_block()
PN532.ntag2xx_write_block()
PN532.power_down()
PN532.process_response()
PN532.read_passive_target()
PN532.reset()
PN532.send_command()
adafruit_pn532.i2c
PN532_I2C
adafruit_pn532.spi
PN532_SPI
reverse_bit()
adafruit_pn532.uart
PN532_UART