File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,6 @@ static const uint8_t MISO = PIN_SPI_MISO;
106
106
static const uint8_t SCK = PIN_SPI_SCK ;
107
107
108
108
// SPI1: Connected to SD
109
- #define USE_SPI1
110
109
#define PIN_SPI1_MISO (29u)
111
110
#define PIN_SPI1_MOSI (26u)
112
111
#define PIN_SPI1_SCK (27u)
@@ -119,6 +118,13 @@ static const uint8_t MOSI1 = PIN_SPI1_MOSI;
119
118
static const uint8_t MISO1 = PIN_SPI1_MISO ;
120
119
static const uint8_t SCK1 = PIN_SPI1_SCK ;
121
120
121
+ // Needed for SD library
122
+ #define SDCARD_SPI SPI1
123
+ #define SDCARD_MISO_PIN PIN_SPI1_MISO
124
+ #define SDCARD_MOSI_PIN PIN_SPI1_MOSI
125
+ #define SDCARD_SCK_PIN PIN_SPI1_SCK
126
+ #define SDCARD_SS_PIN PIN_SPI1_SS
127
+
122
128
// Wire Interfaces
123
129
// ---------------
124
130
#define WIRE_INTERFACES_COUNT 1
You can’t perform that action at this time.
0 commit comments