esp-pn532 icon indicating copy to clipboard operation
esp-pn532 copied to clipboard

I2C write failed

Open zimsekdanilo opened this issue 2 years ago • 2 comments

I have error using the library, when trying to get firmware version.

init: successE (1749) PN532: writecommand I2C write failed: Operation timeout because the bus is busy. E (3779) PN532: writecommand I2C write failed: Sending command error, slave doesn’t ACK the transfer.

bool a = init_PN532_I2C(14, 15, 5, 4, 1);
printf(a ? "init: success" : "init: fail");
SAMConfig();
uint8_t uid = 0; // Buffer to store the returned UID
uint8_t uidLength;    // Length of the UID (4 or 7 bytes depending on ISO14443A card type)
uint32_t ver = getPN532FirmwareVersion();
printf(ver);

Connected pins: PIN 14 - SDA PIN 15 - SCL VCC GND.

Others are not used. Should I put some other numbers when calling init_PN532_I2C?

zimsekdanilo avatar May 04 '22 11:05 zimsekdanilo