I try to use an elechouse PN532 Board with the Nano ESP32 with the current Arduino IDE under Linux. The communication should be done with i2c.
I found a Script with the basic functions, but it is for a "regular" esp32 bord. The (really old) library for the PN532 uses Pins D22 and D21 for SCL and DCA, but the nano doesn't have this pins. So logically the script says "PN53x card not found!"
The library is from here:
The script I am using is from here:
Is there any way to change he pins for the communication?
Is there any better way to communicate with that NFC board?
Hello @tosho57. I have no experience with NFC or the libraries you mentioned, but I think the sample code you referenced in the second link doesn't explicitly set I2C pins - it uses the board's generic Wire object here:
PN532_I2C pn532i2c(Wire);
So unless it explicitly sets them inside the library (odd), I would expect this to use the Nano ESP32's default I2C pins (which are A4 for SDA and A5 for SCL). Have you already tried that?