Unverified Commit 90fc68d8 authored by Charles's avatar Charles Committed by GitHub

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.
parent 4f8e5b54
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment