ESP32 GPIOs 33 to 38 can be used for deep sleep wakeup (#911)

This commit is contained in:
adamgreg 2019-12-07 16:19:27 +00:00 committed by Otto Winter
parent 74aca2137b
commit b5714cd70f

View File

@ -6,7 +6,7 @@ from esphome.const import CONF_ID, CONF_MODE, CONF_NUMBER, CONF_PINS, CONF_RUN_C
def validate_pin_number(value): def validate_pin_number(value):
valid_pins = [0, 2, 4, 12, 13, 14, 15, 25, 26, 27, 32, 39] valid_pins = [0, 2, 4, 12, 13, 14, 15, 25, 26, 27, 32, 33, 34, 35, 36, 37, 38, 39]
if value[CONF_NUMBER] not in valid_pins: if value[CONF_NUMBER] not in valid_pins:
raise cv.Invalid(u"Only pins {} support wakeup" raise cv.Invalid(u"Only pins {} support wakeup"
u"".format(', '.join(str(x) for x in valid_pins))) u"".format(', '.join(str(x) for x in valid_pins)))