mirror of
https://github.com/Anonym-tsk/smart-domofon.git
synced 2025-12-06 11:36:57 +03:00
Leds inversion support
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user