Skip to content

Commit c001996

Browse files
xorbitme-no-dev
authored andcommitted
Add default pin mapping for Serial1 and Serial2 for wESP32 (#2409)
1 parent c1344ae commit c001996

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: variants/wesp32/pins_arduino.h

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

14+
#define TX1 13
15+
#define RX1 12
16+
#define TX2 33
17+
#define RX2 39
18+
1419
static const uint8_t TX = 1;
1520
static const uint8_t RX = 3;
1621

@@ -39,6 +44,6 @@ static const uint8_t T9 = 32;
3944
#define ETH_PHY_MDC 16
4045
#define ETH_PHY_MDIO 17
4146
#define ETH_PHY_TYPE ETH_PHY_LAN8720
42-
#define ETH_CLK_MODE ETH_CLOCK_GPIO0_IN
47+
#define ETH_CLK_MODE ETH_CLOCK_GPIO0_IN
4348

4449
#endif /* Pins_Arduino_h */

0 commit comments

Comments
 (0)