We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ecdf0d commit c07741bCopy full SHA for c07741b
src/PN532_SPI.cpp
@@ -20,10 +20,11 @@ void PN532_SPI::begin()
20
pinMode(_ss, OUTPUT);
21
22
_spi->begin();
23
+ _spi->beginTransaction(SPISettings(1000000, LSBFIRST, SPI_MODE0));
24
#if defined(ARDUINO_XIAO_RA4M1) || defined(ARDUINO_ARCH_RP2040) || defined(ARDUINO_ARCH_RP2350)
25
#else
- _spi->setDataMode(SPI_MODE0); // PN532 only supports mode0
26
- _spi->setBitOrder(LSBFIRST);
+ // _spi->setDataMode(SPI_MODE0); // PN532 only supports mode0
27
+ // _spi->setBitOrder(LSBFIRST);
28
#if defined __SAM3X8E__
29
/** DUE spi library does not support SPI_CLOCK_DIV8 macro */
30
_spi->setClockDivider(42); // set clock 2MHz(max: 5MHz)
0 commit comments