Merge pull request #440 from aosodoev/patch-1

Conditional definition of MFRC522_SPICLOCK.
(Make it possible to set SPI clock)
This commit is contained in:
Rotzbua
2018-12-08 03:01:10 +01:00
committed by GitHub

View File

@@ -83,7 +83,9 @@
#include <Arduino.h> #include <Arduino.h>
#include <SPI.h> #include <SPI.h>
#ifndef MFRC522_SPICLOCK
#define MFRC522_SPICLOCK SPI_CLOCK_DIV4 // MFRC522 accept upto 10MHz #define MFRC522_SPICLOCK SPI_CLOCK_DIV4 // MFRC522 accept upto 10MHz
#endif
// Firmware data for self-test // Firmware data for self-test
// Reference values based on firmware version // Reference values based on firmware version