Adafruit-PN532 icon indicating copy to clipboard operation
Adafruit-PN532 copied to clipboard

Compilation error with RESET_PIN on GPIO0 on ESP32

Open danieljr-nh opened this issue 2 years ago • 2 comments

Custom board Vs code + platformio Adafruit_PN532 1.3.0

When I try to compile with RESET_PIN defined to GPIO_0, I get the error: :call of overloaded 'Adafruit_PN532(int, int)' is ambiguous.

Regards Daniel Jr.

danieljr-nh avatar Jul 20 '23 13:07 danieljr-nh

Possibly something platformio specific?

There's only the single (int, int) overload in the library:

  Adafruit_PN532(uint8_t clk, uint8_t miso, uint8_t mosi,
                 uint8_t ss);                          // Software SPI
  Adafruit_PN532(uint8_t ss, SPIClass *theSPI = &SPI); // Hardware SPI
  Adafruit_PN532(uint8_t irq, uint8_t reset,
                 TwoWire *theWire = &Wire);              // Hardware I2C
  Adafruit_PN532(uint8_t reset, HardwareSerial *theSer); // Hardware UART

Unless platformio does something special for SPIClass and TwoWire.

caternuson avatar Aug 01 '23 20:08 caternuson

@danieljr-nh Can you recreate this issue using the Arduino IDE?

caternuson avatar Aug 01 '23 20:08 caternuson