led 3x driver
This commit is contained in:
parent
11091c1d9a
commit
51a3f04f5c
|
|
@ -5,6 +5,8 @@ esphome:
|
||||||
esp32:
|
esp32:
|
||||||
board: esp32-c3-devkitm-1
|
board: esp32-c3-devkitm-1
|
||||||
variant: esp32c3
|
variant: esp32c3
|
||||||
|
framework:
|
||||||
|
type: esp-idf
|
||||||
|
|
||||||
logger:
|
logger:
|
||||||
baud_rate: 0
|
baud_rate: 0
|
||||||
|
|
@ -27,15 +29,15 @@ output:
|
||||||
- platform: ledc
|
- platform: ledc
|
||||||
pin: GPIO4
|
pin: GPIO4
|
||||||
id: led_pwm01
|
id: led_pwm01
|
||||||
frequency: 20000 Hz
|
frequency: 10000 Hz
|
||||||
- platform: ledc
|
- platform: ledc
|
||||||
pin: GPIO5
|
pin: GPIO5
|
||||||
id: led_pwm02
|
id: led_pwm02
|
||||||
frequency: 20000 Hz
|
frequency: 10000 Hz
|
||||||
- platform: ledc
|
- platform: ledc
|
||||||
pin: GPIO6
|
pin: GPIO6
|
||||||
id: led_pwm03
|
id: led_pwm03
|
||||||
frequency: 20000 Hz
|
frequency: 10000 Hz
|
||||||
|
|
||||||
light:
|
light:
|
||||||
- platform: monochromatic
|
- platform: monochromatic
|
||||||
|
|
@ -51,6 +53,19 @@ light:
|
||||||
output: led_pwm03
|
output: led_pwm03
|
||||||
gamma_correct: 1.0
|
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:
|
button:
|
||||||
- platform: restart
|
- platform: restart
|
||||||
name: "Restart Device"
|
name: "Restart Device"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue