Just a few tweaks based on running through a set of BSPs to test each PN532 interface.
Tested using updated readMifare example in this PR. The only change to example is removal of call to SAMConfig() from user sketch, since this is now done internally in Adafruit_PN532::begin(). (other examples should be updated also)
The following BSPs were tested:
SAMD - Feather M4 Express
ESP32 - Feather ESP32 V2
ESP8266 - Feather ESP8266
RP2040 (philhower) - Feather RP2040
The following PN532 interfaces were tested on each of the above:
SPI
I2C
HSU (serial)
Results:
ESP32 did not like using spi_dev->beginTransactionWithAssertingCS() for SPI wakeup. Switched to directly setting CS pin.
RP2040 w/HSU wanted serial read buffer cleared out before usage
RP2040 w/SPI required fixing a bug in RP2040 BSP when using LSBFIRST
Feather ESP8266 has no extra hardware Serial, so PN532 HSU interface did not work
Just a few tweaks based on running through a set of BSPs to test each PN532 interface.
Tested using updated
readMifare
example in this PR. The only change to example is removal of call toSAMConfig()
from user sketch, since this is now done internally inAdafruit_PN532::begin()
. (other examples should be updated also)The following BSPs were tested:
The following PN532 interfaces were tested on each of the above:
Results:
spi_dev->beginTransactionWithAssertingCS()
for SPI wakeup. Switched to directly setting CS pin.