From fe73fe7eebdb862e7add70d8a33c90b8e6d6b341 Mon Sep 17 00:00:00 2001 From: Pete <38395635+UniquePete@users.noreply.github.com> Date: Tue, 31 Dec 2024 06:52:53 +1100 Subject: [PATCH] Update pins_arduino.h Add definition for SPI bus to be used by the SD [Card] library. With the SPI1 pins explicitly identified herein and broken out on the P1 header, the second SPI bus will generally be that used to connect external SPI devices. --- variants/CubeCell-BoardPlus/pins_arduino.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/variants/CubeCell-BoardPlus/pins_arduino.h b/variants/CubeCell-BoardPlus/pins_arduino.h index f56cea75..b5b1e68a 100644 --- a/variants/CubeCell-BoardPlus/pins_arduino.h +++ b/variants/CubeCell-BoardPlus/pins_arduino.h @@ -60,4 +60,8 @@ typedef enum #define SCK1 GPIO3 #define SDA1 GPIO9 #define SCL1 GPIO8 + +// Needed for SD library +#define SDCARD_SPI SPI1 + #endif /* Pins_Arduino_h */