Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8510734

Browse filesBrowse files
authored
Add default SPI pin definitions if not defined in pins_arduino.h (#7161)
* add default SPI pins ifndef in arduino_pins.h * Revert "add default SPI pins ifndef in arduino_pins.h" This reverts commit be35b83. * Add missing default SPI pins * revert change for d32_pro
1 parent 0882ea0 commit 8510734
Copy full SHA for 8510734

File tree

Expand file treeCollapse file tree

3 files changed

+15
-1
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+15
-1
lines changed

‎variants/d32_pro/pins_arduino.h

Copy file name to clipboardExpand all lines: variants/d32_pro/pins_arduino.h
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ static const uint8_t LED_BUILTIN = 5;
99
#define LED_BUILTIN LED_BUILTIN
1010
static const uint8_t _VBAT = 35; // battery voltage
1111

12-
1312
#define TF_CS 4 // TF (Micro SD Card) CS pin
1413
#define TS_CS 12 // Touch Screen CS pin
1514
#define TFT_CS 14 // TFT CS pin

‎variants/metro_esp-32/pins_arduino.h

Copy file name to clipboardExpand all lines: variants/metro_esp-32/pins_arduino.h
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,9 @@ static const uint8_t SCL = 22;
2222

2323
static const uint8_t ADR = 12;
2424

25+
static const uint8_t SS = 5;
26+
static const uint8_t MOSI = 23;
27+
static const uint8_t MISO = 19;
28+
static const uint8_t SCK = 18;
29+
2530
#endif /* Pins_Arduino_h */

‎variants/wt32-eth01/pins_arduino.h

Copy file name to clipboardExpand all lines: variants/wt32-eth01/pins_arduino.h
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,14 @@ static const uint8_t RXD2 = 5, RXD = 5;
5252
static const uint8_t TX = 1;
5353
static const uint8_t RX = 3;
5454

55+
//SPI VSPI default pins
56+
static const uint8_t SS = -1;
57+
static const uint8_t MOSI = 15;
58+
static const uint8_t MISO = 12;
59+
static const uint8_t SCK = 14;
60+
61+
//I2C default pins
62+
static const uint8_t SDA = 2;
63+
static const uint8_t SCL = 4;
64+
5565
#endif /* Pins_Arduino_h */

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.