Mark GPIOs 16 and 17 as read on ESP32, as they are used for PSRAM

This commit is contained in:
Stephan Hadinger 2021-07-18 15:00:11 +02:00
parent 4173340c6a
commit 1bbf7b826a
1 changed files with 6 additions and 0 deletions

View File

@ -1632,8 +1632,14 @@ bool RedPin(uint32_t pin) // pin may be dangerous to change, display in RED in t
#if defined(ESP32) && CONFIG_IDF_TARGET_ESP32C3
return false; // no red pin on ESP32C3
#else // ESP32 and ESP8266
#ifdef CONFIG_IDF_TARGET_ESP32
return (16==pin)||(17==pin)||(9==pin)||(10==pin);
#else
return (9==pin)||(10==pin);
#endif
#endif
}
uint32_t ValidPin(uint32_t pin, uint32_t gpio) {