led 3x driver
This commit is contained in:
parent
11091c1d9a
commit
51a3f04f5c
|
|
@ -5,6 +5,8 @@ esphome:
|
|||
esp32:
|
||||
board: esp32-c3-devkitm-1
|
||||
variant: esp32c3
|
||||
framework:
|
||||
type: esp-idf
|
||||
|
||||
logger:
|
||||
baud_rate: 0
|
||||
|
|
@ -27,15 +29,15 @@ output:
|
|||
- platform: ledc
|
||||
pin: GPIO4
|
||||
id: led_pwm01
|
||||
frequency: 20000 Hz
|
||||
frequency: 10000 Hz
|
||||
- platform: ledc
|
||||
pin: GPIO5
|
||||
id: led_pwm02
|
||||
frequency: 20000 Hz
|
||||
frequency: 10000 Hz
|
||||
- platform: ledc
|
||||
pin: GPIO6
|
||||
id: led_pwm03
|
||||
frequency: 20000 Hz
|
||||
frequency: 10000 Hz
|
||||
|
||||
light:
|
||||
- platform: monochromatic
|
||||
|
|
@ -51,6 +53,19 @@ light:
|
|||
output: led_pwm03
|
||||
gamma_correct: 1.0
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
id: grove_relay
|
||||
name: "Power AC-DC"
|
||||
pin:
|
||||
number: GPIO1
|
||||
mode:
|
||||
output: true
|
||||
pullup: false
|
||||
pulldown: false
|
||||
inverted: false # jeśli nie kliknie – zmień na true i sprawdź
|
||||
restore_mode: ALWAYS_OFF
|
||||
|
||||
button:
|
||||
- platform: restart
|
||||
name: "Restart Device"
|
||||
|
|
|
|||
Loading…
Reference in a new issue