Skip to content

Add default SPI pin definitions if not defined in pins_arduino.h #7161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Sep 14, 2022
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion variants/d32_pro/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ static const uint8_t LED_BUILTIN = 5;
#define LED_BUILTIN LED_BUILTIN
static const uint8_t _VBAT = 35; // battery voltage


#define TF_CS 4 // TF (Micro SD Card) CS pin
#define TS_CS 12 // Touch Screen CS pin
#define TFT_CS 14 // TFT CS pin
Expand Down
5 changes: 5 additions & 0 deletions variants/metro_esp-32/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,9 @@ static const uint8_t SCL = 22;

static const uint8_t ADR = 12;

static const uint8_t SS = 5;
static const uint8_t MOSI = 23;
static const uint8_t MISO = 19;
static const uint8_t SCK = 18;

#endif /* Pins_Arduino_h */
10 changes: 10 additions & 0 deletions variants/wt32-eth01/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,14 @@ static const uint8_t RXD2 = 5, RXD = 5;
static const uint8_t TX = 1;
static const uint8_t RX = 3;

//SPI VSPI default pins
static const uint8_t SS = -1;
static const uint8_t MOSI = 15;
static const uint8_t MISO = 12;
static const uint8_t SCK = 14;

//I2C default pins
static const uint8_t SDA = 2;
static const uint8_t SCL = 4;

#endif /* Pins_Arduino_h */