summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Shawcroft <scott.shawcroft@gmail.com>2017-04-13 14:15:06 -0700
committerScott Shawcroft <scott.shawcroft@gmail.com>2017-04-13 14:15:06 -0700
commitd1b15cf1a3070581a781a80fd55a346e4849950b (patch)
treeb1837e4a2e516f3d87edbac5dd22c82e106163c4
parent4a4f29b8f95aa67f63397ae4efe78c6994398ccf (diff)
esp8266: Don't reset TX and RX lines. The pullup is required for
the Adafruit Huzzah Breakout because it has a diode to protect against 5v logic which effectively blocks 1s and relies on the pull up to produce them.
-rw-r--r--esp8266/common-hal/microcontroller/Pin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/esp8266/common-hal/microcontroller/Pin.c b/esp8266/common-hal/microcontroller/Pin.c
index d20a6a997..417ab0c41 100644
--- a/esp8266/common-hal/microcontroller/Pin.c
+++ b/esp8266/common-hal/microcontroller/Pin.c
@@ -47,7 +47,8 @@ bool common_hal_mcu_pin_is_free(const mcu_pin_obj_t* pin) {
void reset_pins(void) {
for (int i = 0; i < 17; i++) {
- if (i == 0 || (i > 6 && i < 13) || i == 12) {
+ // 5 is RXD, 6 is TXD
+ if (i == 0 || (i > 4 && i < 13) || i == 12) {
continue;
}
uint32_t peripheral = PERIPHS_IO_MUX + i * 4;