Skip to content

Commit 90fc68d

Browse files
authored
doitESPduino32 - Add definitions for SPI pins names (#5248)
The doitESPduino32/pins_Arduino.h lacks definitions for the common SPI pins names: SS, MOSI, MISO, SCK This breaks compatibility with Arduino libs, including SPI.h/.cpp This PR solves the issue while maintaining compatibility with previous pin naming (IO5/23/19/18), and ensures consistency with other boards variants.
1 parent 4f8e5b5 commit 90fc68d

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

variants/doitESPduino32/pins_Arduino.h

+9-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,15 @@ static const uint8_t SDA = 21;
1919
static const uint8_t SCL = 22;
2020

2121
//SPI
22-
static const uint8_t IO5 = 5; //SS
23-
static const uint8_t IO23 = 23; //MOSI
24-
static const uint8_t IO19 = 19; //MISO
25-
static const uint8_t IO18 = 18; //SCK
22+
static const uint8_t IO5 = 5; //SS
23+
static const uint8_t IO23 = 23; //MOSI
24+
static const uint8_t IO19 = 19; //MISO
25+
static const uint8_t IO18 = 18; //SCK
26+
27+
static const uint8_t SS = IO5;
28+
static const uint8_t MOSI = IO23;
29+
static const uint8_t MISO = IO19;
30+
static const uint8_t SCK = IO18;
2631

2732
//ANALOG
2833
static const uint8_t IO36 = 36;

0 commit comments

Comments
 (0)