Skip to content

Commit d1b15cf

Browse files
committed
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.
1 parent 4a4f29b commit d1b15cf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • esp8266/common-hal/microcontroller

esp8266/common-hal/microcontroller/Pin.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ bool common_hal_mcu_pin_is_free(const mcu_pin_obj_t* pin) {
4747

4848
void reset_pins(void) {
4949
for (int i = 0; i < 17; i++) {
50-
if (i == 0 || (i > 6 && i < 13) || i == 12) {
50+
// 5 is RXD, 6 is TXD
51+
if (i == 0 || (i > 4 && i < 13) || i == 12) {
5152
continue;
5253
}
5354
uint32_t peripheral = PERIPHS_IO_MUX + i * 4;

0 commit comments

Comments
 (0)