adafruit / Adafruit-PN532

Arduino library for SPI and I2C access to the PN532 RFID/Near Field Communication chip
Other
421 stars 265 forks source link

Compilation error with RESET_PIN on GPIO0 on ESP32 #119

Open danieljr-nh opened 12 months ago

danieljr-nh commented 12 months ago

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.

caternuson commented 11 months ago

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 commented 11 months ago

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