Leds inversion support

This commit is contained in:
Nikolay Vasilchuk
2022-09-12 11:02:20 +03:00
parent 9d2c88b60a
commit 11512cc352
2 changed files with 7 additions and 1 deletions

View File

@@ -68,6 +68,9 @@ substitutions:
pin_led_red: GPIO5
pin_led_green: GPIO4
pin_led_blue: GPIO15
led_red_inverted: 'false'
led_green_inverted: 'false'
led_blue_inverted: 'false'
pin_call_detect: GPIO13
pin_btn_accept: GPIO0

View File

@@ -5,6 +5,7 @@ output:
pin:
number: $pin_led_red
mode: OUTPUT
inverted: $led_red_inverted
# Green LED
- platform: esp8266_pwm
@@ -12,6 +13,7 @@ output:
pin:
number: $pin_led_green
mode: OUTPUT
inverted: $led_green_inverted
# Blue LED
- platform: esp8266_pwm
@@ -19,6 +21,7 @@ output:
pin:
number: $pin_led_blue
mode: OUTPUT
inverted: $led_blue_inverted
# Intercom
- platform: gpio