From c001996eeff7d0112e4f3b8d622b2996baf5c0a9 Mon Sep 17 00:00:00 2001 From: Patrick Van Oosterwijck Date: Thu, 14 Feb 2019 05:05:23 -0700 Subject: [PATCH] Add default pin mapping for Serial1 and Serial2 for wESP32 (#2409) --- variants/wesp32/pins_arduino.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/variants/wesp32/pins_arduino.h b/variants/wesp32/pins_arduino.h index 1bb2b58b..3565791d 100644 --- a/variants/wesp32/pins_arduino.h +++ b/variants/wesp32/pins_arduino.h @@ -11,6 +11,11 @@ #define digitalPinToInterrupt(p) (((p)<40)?(p):-1) #define digitalPinHasPWM(p) (p < 34) +#define TX1 13 +#define RX1 12 +#define TX2 33 +#define RX2 39 + static const uint8_t TX = 1; static const uint8_t RX = 3; @@ -39,6 +44,6 @@ static const uint8_t T9 = 32; #define ETH_PHY_MDC 16 #define ETH_PHY_MDIO 17 #define ETH_PHY_TYPE ETH_PHY_LAN8720 -#define ETH_CLK_MODE ETH_CLOCK_GPIO0_IN +#define ETH_CLK_MODE ETH_CLOCK_GPIO0_IN #endif /* Pins_Arduino_h */