mirror of
https://github.com/esphome/esphome.git
synced 2024-12-18 19:44:53 +01:00
fb96e3588d
Some checks are pending
CI / Check flake8 (push) Blocked by required conditions
CI / Check pylint (push) Blocked by required conditions
CI / Check pyupgrade (push) Blocked by required conditions
CI / Create common environment (push) Waiting to run
CI / Check black (push) Blocked by required conditions
CI / Run script/ci-custom (push) Blocked by required conditions
CI / Run pytest (push) Blocked by required conditions
CI / Check clang-format (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 1/4 (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 2/4 (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 3/4 (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 4/4 (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 IDF (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP8266 (push) Blocked by required conditions
CI / list-components (push) Blocked by required conditions
CI / Component test (push) Blocked by required conditions
CI / Split components for testing into 20 groups maximum (push) Blocked by required conditions
CI / Test split components (push) Blocked by required conditions
CI / CI Status (push) Blocked by required conditions
YAML lint / yamllint (push) Waiting to run
Co-authored-by: Keith Burzinski <kbx81x@gmail.com>
39 lines
807 B
YAML
39 lines
807 B
YAML
output:
|
|
- platform: ${pwm_platform}
|
|
pin: ${output1_pin}
|
|
id: gpio_output1
|
|
- platform: ${pwm_platform}
|
|
pin: ${output2_pin}
|
|
id: gpio_output2
|
|
- platform: ${pwm_platform}
|
|
pin: ${output3_pin}
|
|
id: gpio_output3
|
|
- platform: ${pwm_platform}
|
|
pin: ${output4_pin}
|
|
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: ${hbridge_on_pin}
|
|
off_pin: ${hbridge_off_pin}
|