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:
@@ -128,14 +128,20 @@ spi:
|
||||
miso_pin: GPIO23
|
||||
|
||||
uart:
|
||||
tx_pin: GPIO22
|
||||
rx_pin: GPIO23
|
||||
baud_rate: 115200
|
||||
id: uart0
|
||||
parity: NONE
|
||||
data_bits: 8
|
||||
stop_bits: 1
|
||||
rx_buffer_size: 512
|
||||
- tx_pin: GPIO22
|
||||
rx_pin: GPIO23
|
||||
baud_rate: 115200
|
||||
id: uart0
|
||||
parity: NONE
|
||||
data_bits: 8
|
||||
stop_bits: 1
|
||||
rx_buffer_size: 512
|
||||
|
||||
- id: adalight_uart
|
||||
tx_pin: GPIO25
|
||||
rx_pin: GPIO26
|
||||
baud_rate: 115200
|
||||
rx_buffer_size: 1024
|
||||
|
||||
ota:
|
||||
safe_mode: True
|
||||
@@ -179,6 +185,8 @@ as3935_spi:
|
||||
cs_pin: GPIO12
|
||||
irq_pin: GPIO13
|
||||
|
||||
adalight:
|
||||
|
||||
sensor:
|
||||
- platform: adc
|
||||
pin: A0
|
||||
@@ -1177,6 +1185,8 @@ light:
|
||||
if (initial_run) {
|
||||
it[0] = current_color;
|
||||
}
|
||||
- adalight:
|
||||
uart_id: adalight_uart
|
||||
- automation:
|
||||
name: Custom Effect
|
||||
sequence:
|
||||
|
||||
Reference in New Issue
Block a user