adafruit / Adafruit-PN532

Arduino library for SPI and I2C access to the PN532 RFID/Near Field Communication chip
Other
422 stars 266 forks source link

Convert I2C to BusIO #109

Closed caternuson closed 1 year ago

caternuson commented 1 year ago

Updates I2C to use BusIO.

IRQ pin no longer required. Changes method used for checking ready with I2C. Instead of polling the IRQ pin, it now checks the RDY byte (via I2C), from User Manual, s6.2.4: image

Tested with readMifare example on Feather M4: Screenshot from 2023-02-14 11-14-16

Also retested SPI to confirm still working: Screenshot from 2023-02-14 11-16-32

caternuson commented 1 year ago

@ladyada for review