Allow pins 9&10 for PWM (#410)

Ref https://github.com/esp8266/Arduino/pull/5055
This commit is contained in:
Otto Winter 2019-02-10 16:32:02 +01:00 committed by GitHub
parent f185ba7a21
commit 8ce176aaba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,7 +13,7 @@ ESP_PLATFORMS = [ESP_PLATFORM_ESP8266]
def valid_pwm_pin(value):
num = value[CONF_NUMBER]
cv.one_of(0, 1, 2, 3, 4, 5, 12, 13, 14, 15, 16)(num)
cv.one_of(0, 1, 2, 3, 4, 5, 9, 10, 12, 13, 14, 15, 16)(num)
return value