We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbbd047 commit 9fd686bCopy full SHA for 9fd686b
1 file changed
cores/esp8266/core_esp8266_wiring_digital.c
@@ -154,7 +154,15 @@ extern void __detachInterrupt(uint8_t pin) {
154
}
155
156
void initPins() {
157
- ETS_GPIO_INTR_ATTACH(interrupt_handlers, &interrupt_reg);
+ for (int i = 0; i <= 5; ++i) {
158
+ pinMode(i, INPUT);
159
+ }
160
+ // pins 6-11 are used for the SPI flash interface
161
+ for (int i = 12; i <= 16; ++i) {
162
163
164
+
165
+ ETS_GPIO_INTR_ATTACH(interrupt_handler, &interrupt_reg);
166
ETS_GPIO_INTR_ENABLE();
167
168
0 commit comments