mirror of
https://github.com/esphome/esphome.git
synced 2024-11-30 18:54:14 +01:00
41 lines
743 B
YAML
41 lines
743 B
YAML
output:
|
|
- platform: rp2040_pwm
|
|
pin: 4
|
|
id: gpio_output1
|
|
- platform: rp2040_pwm
|
|
pin: 5
|
|
id: gpio_output2
|
|
- platform: rp2040_pwm
|
|
pin: 6
|
|
id: gpio_output3
|
|
- platform: rp2040_pwm
|
|
pin: 7
|
|
id: gpio_output4
|
|
|
|
light:
|
|
- platform: hbridge
|
|
name: Icicle Lights
|
|
pin_a: gpio_output3
|
|
pin_b: gpio_output4
|
|
|
|
fan:
|
|
- platform: hbridge
|
|
id: fan_hbridge
|
|
speed_count: 4
|
|
name: H-bridge Fan with Presets
|
|
pin_a: gpio_output1
|
|
pin_b: gpio_output2
|
|
preset_modes:
|
|
- Preset 1
|
|
- Preset 2
|
|
on_preset_set:
|
|
then:
|
|
- logger.log: Preset mode was changed!
|
|
|
|
switch:
|
|
- platform: hbridge
|
|
id: switch_hbridge
|
|
on_pin: 2
|
|
off_pin: 3
|
|
wait_time: 10ms
|
|
optimistic: true
|