Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aligator/ledcontrol

Controling a RGB LED matrix by using MQTT. Runs on an esp 8266 and may be other arduinos.
https://github.com/aligator/ledcontrol

Last synced: 7 days ago
JSON representation

Controling a RGB LED matrix by using MQTT. Runs on an esp 8266 and may be other arduinos.

Awesome Lists containing this project

README

        

# LED Control

This is a firmware to control a led matrix using an esp8266 over MQTT with auto discovery for HomeAssistant.

The base topic and all other connection confiurations can be configured in the `Config.h`.
Just copy over the `Config.example.h`.

The available topics are:
`/set/brightness` `0` - `255`
`/set/fps` `-1` - `500` (`-1` means no restriction -> as fast as the main loop runs)
`/set/switch` `ON` / `OFF`
`/set/text/text` any string
`/set/text/scroll` `ON` / `OFF` If the text should scroll. The text is just cut off, if it is too long.
`/set/blink` `ON` / `OFF` If the blink mode is enabled

The color can be changed using these topics:
`/add/color`
Add a color to the current color array
`/set/color`
Set and replace the current colors with a specific color (array)

The colors can have the following formats:
* Numeric `0 - 16777215` (int representation of 0x000000 - 0xFFFFFF)
* JSON array: `[255, 255, 255]`
* HomeAssistant default format: `rrr,ggg,bbb` e.g. `0,100,255`

The `/set/color` also supports json arrays:
* Numeric `[0, 5555454, 16777215]`
* JSON array: `[[255, 255, 255], [255, 255, 255]]`
* HomeAssistant default format: `["rrr,ggg,bbb", "rrr,ggg,bbb"]` e.g. `["0,100,255", "255,0,0"]`