mirror of
https://github.com/YuzuZensai/MCUFRIEND_kbv.git
synced 2026-01-31 14:57:48 +00:00
Show error if SPI_DRIVER_SELECT != 2
This commit is contained in:
@@ -21,6 +21,10 @@
|
|||||||
#define USE_SDFAT
|
#define USE_SDFAT
|
||||||
#include <SdFat.h> // Use the SdFat library
|
#include <SdFat.h> // Use the SdFat library
|
||||||
|
|
||||||
|
#if SPI_DRIVER_SELECT != 2
|
||||||
|
#error edit SdFatConfig.h . READ THE SKETCH INSTRUCTIONS
|
||||||
|
#endif
|
||||||
|
|
||||||
SoftSpiDriver<12, 11, 13> softSpi; //Bit-Bang on the Shield pins SDFat.h v2
|
SoftSpiDriver<12, 11, 13> softSpi; //Bit-Bang on the Shield pins SDFat.h v2
|
||||||
SdFat SD;
|
SdFat SD;
|
||||||
#define SD_CS SdSpiConfig(10, DEDICATED_SPI, SD_SCK_MHZ(0), &softSpi)
|
#define SD_CS SdSpiConfig(10, DEDICATED_SPI, SD_SCK_MHZ(0), &softSpi)
|
||||||
|
|||||||
Reference in New Issue
Block a user