1
0
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:
ficeto 2015-05-01 15:52:30 +03:00
parent 3a7846a574
commit c94128c02d

View File

@ -154,6 +154,11 @@ extern void __detachInterrupt(uint8_t pin) {
}
void initPins() {
//Disable UART interrupts
system_set_os_print(0);
U0IE = 0;
U1IE = 0;
for (int i = 0; i <= 5; ++i) {
pinMode(i, INPUT);
}