Replies: 1 comment
-
Hi! Just to make sure, are you setting up properly the bus: Configuration.SetPinFunction(25, DeviceFunction.I2C1_DATA);
Configuration.SetPinFunction(26, DeviceFunction.I2C1_CLOCK);
Pn532 pn532 = new Pn532(I2cDevice.Create(new I2cConnectionSettings(1, Pn532.I2cDefaultAddress))); Setting up the pins is mandatory. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I try to connect PN532 NFC reader to ESP32 (ESP_REV0) over I2C, but getting "Can't find a PN532" exception. Data pin is 25 and clock pin is 26, this should be the default for bus 2.
I tried to run I2C scanner from here https://docs.nanoframework.net/samplesdetails/I2C/NanoI2cScanner/README.html to find an address of my PN532. All addresses are returning
Write: 4, transferred: 0, Read: 2, transferred: 0
except for 0x24 and 0A4, they are returningWrite: 2, transferred: 0, Read: 1, transferred: 1
.So what does it mean? How can I fix it? Maybe it is something similar to #1113
Beta Was this translation helpful? Give feedback.
All reactions