Merge pull request #12679 from s-hadinger/gpio16_17_red

Mark GPIOs 16 and 17 as read on ESP32, as they are used for PSRAM
This commit is contained in:
s-hadinger 2021-07-18 15:24:51 +02:00 committed by GitHub
commit 5e62a8bdbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {