mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-19 23:22:16 +03:00
esp8285: properly initialize free gpio as input (#7165)
This commit is contained in:
parent
631f66bd08
commit
a04c3244d5
@ -236,12 +236,9 @@ extern void __attachInterrupt(uint8_t pin, voidFuncPtr userFunc, int mode)
|
|||||||
}
|
}
|
||||||
|
|
||||||
extern void __resetPins() {
|
extern void __resetPins() {
|
||||||
for (int i = 0; i <= 5; ++i) {
|
for (int i = 0; i <= 16; ++i) {
|
||||||
pinMode(i, INPUT);
|
if (!isFlashInterfacePin(i))
|
||||||
}
|
pinMode(i, INPUT);
|
||||||
// pins 6-11 are used for the SPI flash interface
|
|
||||||
for (int i = 12; i <= 16; ++i) {
|
|
||||||
pinMode(i, INPUT);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user