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.
This commit is contained in:
parent
4f8e5b54b7
commit
90fc68d83f
@ -19,10 +19,15 @@ static const uint8_t SDA = 21;
|
||||
static const uint8_t SCL = 22;
|
||||
|
||||
//SPI
|
||||
static const uint8_t IO5 = 5; //SS
|
||||
static const uint8_t IO23 = 23; //MOSI
|
||||
static const uint8_t IO19 = 19; //MISO
|
||||
static const uint8_t IO18 = 18; //SCK
|
||||
static const uint8_t IO5 = 5; //SS
|
||||
static const uint8_t IO23 = 23; //MOSI
|
||||
static const uint8_t IO19 = 19; //MISO
|
||||
static const uint8_t IO18 = 18; //SCK
|
||||
|
||||
static const uint8_t SS = IO5;
|
||||
static const uint8_t MOSI = IO23;
|
||||
static const uint8_t MISO = IO19;
|
||||
static const uint8_t SCK = IO18;
|
||||
|
||||
//ANALOG
|
||||
static const uint8_t IO36 = 36;
|
||||
|
Loading…
Reference in New Issue
Block a user