adafruit / Adafruit-PN532

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

Hardware SPI not working on Arduino Giga R1 #120

Open Gerriko opened 10 months ago

Gerriko commented 10 months ago

If I select software SPI option in the library for either Arduino Giga R1 SPI(0) or SPI1 pins, using:

Adafruit_PN532 nfc(PN532_SCK, PN532_MISO, PN532_MOSI, PN532_SS);

Then it works.

If I choose the hardware SPI option using either of the following:

Adafruit_PN532 nfc(PN532_SS);
Adafruit_PN532 nfc(PN532_SS, &SPI);
Adafruit_PN532 nfc(PN532_SS, &SPI1);

it tells me that it cannot find the PN532 breakout board.

X15-2024 commented 2 months ago

I agree. I'm trying the setup using pins 10 through 13, and it still won't do just the CS=10 entry only for hardware SPI. I'm connecting to an SPI FRAM memory 4M.