We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5f6df7f + c216c28 commit 2148211Copy full SHA for 2148211
esp8266/common-hal/microcontroller/Pin.c
@@ -28,6 +28,8 @@
28
#include "common-hal/microcontroller/Pin.h"
29
#include "shared-bindings/microcontroller/Pin.h"
30
31
+#include "py/mphal.h"
32
+
33
#include "eagle_soc.h"
34
35
extern volatile bool adc_in_use;
@@ -48,11 +50,13 @@ bool common_hal_mcu_pin_is_free(const mcu_pin_obj_t* pin) {
48
50
void reset_pins(void) {
49
51
for (int i = 0; i < 17; i++) {
52
// 5 is RXD, 6 is TXD
- if (i == 0 || (i > 4 && i < 13) || i == 12) {
53
+ if ((i > 4 && i < 13) || i == 12) {
54
continue;
55
}
56
uint32_t peripheral = PERIPHS_IO_MUX + i * 4;
57
PIN_FUNC_SELECT(peripheral, 0);
58
PIN_PULLUP_DIS(peripheral);
59
+ // Disable the pin.
60
+ gpio_output_set(0x0, 0x0, 0x0, 1 << i);
61
62
0 commit comments