1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 19:02:18 +01:00

Hbridge christmas light (#1251)

* Hbridge Christmas light component

Can be used for Christmas lights that use 2 wires to run 2 different strings of lights using a hbridge driver.

* Add Test

NOTE: I am unable to test this via the docker image

* Update hbridge_light_output.h

* Update hbridge_light_output.h

* Update hbridge_light_output.h

* Update light.py

* Fixed duty as white value bug fixed

* lint changes

* Name case change

* thanks lint
This commit is contained in:
Daniel Hyles
2020-11-08 12:46:34 +11:00
committed by GitHub
parent 7221337442
commit fc01a70b65
4 changed files with 107 additions and 0 deletions

View File

@@ -761,6 +761,9 @@ output:
id: out
pin: D3
frequency: 50Hz
- platform: esp8266_pwm
id: out2
pin: D4
- platform: custom
type: binary
lambda: |-
@@ -809,6 +812,10 @@ light:
uart_id: adalight_uart
- e131:
universe: 1
- platform: hbridge
name: Icicle Lights
pin_a: out
pin_b: out2
servo:
id: my_servo