Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error with RESET_PIN on GPIO0 on ESP32 #119

Open
danieljr-nh opened this issue Jul 20, 2023 · 2 comments
Open

Compilation error with RESET_PIN on GPIO0 on ESP32 #119

danieljr-nh opened this issue Jul 20, 2023 · 2 comments

Comments

@danieljr-nh
Copy link

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
Copy link
Contributor

caternuson commented Aug 1, 2023

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
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants