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:
Charles 2021-06-09 11:55:13 +02:00 committed by GitHub
parent 4f8e5b54b7
commit 90fc68d83f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,10 +19,15 @@ static const uint8_t SDA = 21;
static const uint8_t SCL = 22; static const uint8_t SCL = 22;
//SPI //SPI
static const uint8_t IO5 = 5; //SS static const uint8_t IO5 = 5; //SS
static const uint8_t IO23 = 23; //MOSI static const uint8_t IO23 = 23; //MOSI
static const uint8_t IO19 = 19; //MISO static const uint8_t IO19 = 19; //MISO
static const uint8_t IO18 = 18; //SCK 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 //ANALOG
static const uint8_t IO36 = 36; static const uint8_t IO36 = 36;