config files on 14-12-2023 09:06:28
This commit is contained in:
@@ -14,6 +14,7 @@ substitutions:
|
||||
pin_led1: GPIO3
|
||||
pin_led2: GPIO4
|
||||
pin_led3: GPIO1
|
||||
ledc_freq: "19531Hz"
|
||||
|
||||
packages:
|
||||
board: !include boards/esp32-C3.yaml
|
||||
@@ -28,16 +29,21 @@ light:
|
||||
id: ledString1
|
||||
output: led1
|
||||
name: "led string 1"
|
||||
restore_mode: Restore_and_on
|
||||
|
||||
- platform: monochromatic
|
||||
id: ledString2
|
||||
output: led2
|
||||
name: "led string 2"
|
||||
restore_mode: Restore_and_on
|
||||
|
||||
|
||||
- platform: monochromatic
|
||||
id: ledString3
|
||||
output: led3
|
||||
name: "led string 3"
|
||||
restore_mode: Restore_and_on
|
||||
|
||||
|
||||
- platform: partition
|
||||
id: master
|
||||
@@ -49,19 +55,23 @@ light:
|
||||
- single_light_id: ledString3
|
||||
|
||||
|
||||
# Example output entry
|
||||
|
||||
#https://www.esphome.io/components/output/ledc
|
||||
output:
|
||||
- platform: ledc
|
||||
pin: ${pin_led1}
|
||||
id: led1
|
||||
frequency: ${ledc_freq}
|
||||
|
||||
- platform: ledc
|
||||
pin: ${pin_led2}
|
||||
id: led2
|
||||
frequency: ${ledc_freq}
|
||||
|
||||
- platform: ledc
|
||||
pin: ${pin_led3}
|
||||
id: led3
|
||||
frequency: ${ledc_freq}
|
||||
|
||||
esphome:
|
||||
libraries:
|
||||
|
||||
Reference in New Issue
Block a user