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

Lines changed: 9 additions & 4 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy