From 811320b4db53e9a4c01f08596e7050206f1e08d4 Mon Sep 17 00:00:00 2001 From: prenticedavid Date: Wed, 20 Jan 2021 16:50:30 +0000 Subject: [PATCH] Show error if SPI_DRIVER_SELECT != 2 --- examples/showBMP_not_Uno/showBMP_not_Uno.ino | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/showBMP_not_Uno/showBMP_not_Uno.ino b/examples/showBMP_not_Uno/showBMP_not_Uno.ino index 3cbe5c2..8fa071c 100644 --- a/examples/showBMP_not_Uno/showBMP_not_Uno.ino +++ b/examples/showBMP_not_Uno/showBMP_not_Uno.ino @@ -21,6 +21,10 @@ #define USE_SDFAT #include // 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 SdFat SD; #define SD_CS SdSpiConfig(10, DEDICATED_SPI, SD_SCK_MHZ(0), &softSpi)