Allow GPIO20 for ESP32 (#3680)

This commit is contained in:
Borys Pierov 2022-08-03 15:30:19 -04:00 committed by GitHub
parent 9e227b0192
commit 8546ae56da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ def esp32_validate_gpio_pin(value):
"See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins", "See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins",
value, value,
) )
if value in (20, 24, 28, 29, 30, 31): if value in (24, 28, 29, 30, 31):
# These pins are not exposed in GPIO mux (reason unknown) # These pins are not exposed in GPIO mux (reason unknown)
# but they're missing from IO_MUX list in datasheet # but they're missing from IO_MUX list in datasheet
raise cv.Invalid(f"The pin GPIO{value} is not usable on ESP32s.") raise cv.Invalid(f"The pin GPIO{value} is not usable on ESP32s.")