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.
This commit is contained in:
parent
4a4f29b8f9
commit
d1b15cf1a3
|
@ -47,7 +47,8 @@ bool common_hal_mcu_pin_is_free(const mcu_pin_obj_t* pin) {
|
||||||
|
|
||||||
void reset_pins(void) {
|
void reset_pins(void) {
|
||||||
for (int i = 0; i < 17; i++) {
|
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;
|
continue;
|
||||||
}
|
}
|
||||||
uint32_t peripheral = PERIPHS_IO_MUX + i * 4;
|
uint32_t peripheral = PERIPHS_IO_MUX + i * 4;
|
||||||
|
|
Loading…
Reference in New Issue