mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-21 10:26:06 +03:00
disable UART before making all pins INPUTs
This commit is contained in:
parent
3a7846a574
commit
c94128c02d
@ -154,6 +154,11 @@ extern void __detachInterrupt(uint8_t pin) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void initPins() {
|
void initPins() {
|
||||||
|
//Disable UART interrupts
|
||||||
|
system_set_os_print(0);
|
||||||
|
U0IE = 0;
|
||||||
|
U1IE = 0;
|
||||||
|
|
||||||
for (int i = 0; i <= 5; ++i) {
|
for (int i = 0; i <= 5; ++i) {
|
||||||
pinMode(i, INPUT);
|
pinMode(i, INPUT);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user