Skip to content

Commit cebd870

Browse files
xorbitme-no-dev
authored andcommitted
Default pin remap for wESP32 (#2508)
* Add default pin mapping for Serial1 and Serial2 * Default pin remap on wESP32 Improved default pin mapping for I2C0 and UART1 to avoid issues with programming. SDA0 was on IO2 but IO2 needs to be pulled low on reset to enable serial programming, which conflicts with I2C pull-ups. RX1 was on IO12, idle UART level is high which conflicts with IO12 needing to be low on reset to select correct 3.3V flash voltage. New mappings: SDA0 on IO15 RX1 on IO13 TX1 on IO12
1 parent ff85f3e commit cebd870

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: variants/wesp32/pins_arduino.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111
#define digitalPinToInterrupt(p) (((p)<40)?(p):-1)
1212
#define digitalPinHasPWM(p) (p < 34)
1313

14-
#define TX1 13
15-
#define RX1 12
14+
#define TX1 12
15+
#define RX1 13
1616
#define TX2 33
1717
#define RX2 39
1818

1919
static const uint8_t TX = 1;
2020
static const uint8_t RX = 3;
2121

2222
static const uint8_t SCL = 4;
23-
static const uint8_t SDA = 2;
23+
static const uint8_t SDA = 15;
2424

2525
static const uint8_t SS = 5;
2626
static const uint8_t MOSI = 23;

0 commit comments

Comments
 (0)