Add Adalight support (#956)

A component to support [Adalight](https://learn.adafruit.com/adalight-diy-ambient-tv-lighting).
This allows to control addressable LEDs over UART, by pushing data right into LEDs.

The most useful to use [Prismatik](https://github.com/psieg/Lightpack) to create
an immersive effect on PC.

Co-authored-by: Guillermo Ruffino <glm.net@gmail.com>
This commit is contained in:
Kamil Trzciński
2020-06-13 01:34:38 +02:00
committed by GitHub
parent 27204aa53c
commit d1b051a6bd
5 changed files with 234 additions and 11 deletions

View File

@@ -183,9 +183,13 @@ spi:
miso_pin: GPIO14
uart:
tx_pin: GPIO1
rx_pin: GPIO3
baud_rate: 115200
- tx_pin: GPIO1
rx_pin: GPIO3
baud_rate: 115200
- id: adalight_uart
rx_pin: GPIO3
baud_rate: 115200
ota:
safe_mode: True
@@ -203,6 +207,8 @@ deep_sleep:
run_duration: 20s
sleep_duration: 50s
adalight:
sensor:
- platform: apds9960
type: proximity
@@ -708,6 +714,8 @@ light:
method: ESP8266_UART0
num_leds: 100
effects:
- adalight:
uart_id: adalight_uart
- e131:
universe: 1