Skip to content

Commit

Permalink
Add default pin mapping for Serial1 and Serial2 for wESP32 (#2409)
Browse files Browse the repository at this point in the history
  • Loading branch information
xorbit authored and me-no-dev committed Feb 14, 2019
1 parent c1344ae commit c001996
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion variants/wesp32/pins_arduino.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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 */

0 comments on commit c001996

Please sign in to comment.