Closed ghost closed 4 years ago
Precompiler switches should be avoided. Same for board depended code. You can inject MFRC522_SPICLOCK
as compile flag. Otherwise I think the board implementation of the Arduino api should be fixed?
Injectable SPI is available at the fork.
Remove compile warning on Arduino Nano33BLE. mbed architecture SPI.h not defined SPI_CLOCK_DIV, so add MFRC522_SPICLOCK define.