jackw01 / led-control

Advanced WS2812/SK6812 RGB/RGBW LED controller with on-the-fly Python animation programming, web code editor/control interface, 1D, 2D, and 3D display support, and E1.31 sACN support
https://jackw01.github.io/led-control/
MIT License
162 stars 35 forks source link

Controlling multiple LED strips from a single frontend #45

Open KybraNET opened 1 year ago

KybraNET commented 1 year ago

Why im here?

I really like the effects and presets that you've implemented. Great work!

I want to control and synchronize three different LED strips (2801, 2812, 6812) using a single frontend.

I'm considering usability and decoupling this approach from specific LED strips, allowing for the use of any type of LED strip or controller.

Master Slave, Client-Server, Broadcast

I'm interested in the architecture of controlling LED strips with a frontend, specifically transitioning from a 1:1 model to a server-client model where multiple controllers(1:n) can be controlled by the frontend. Initially, all controllers will run the same effect, but later we may give each instance its own effect or treat the system as a single LED strip.

I propose encapsulating the calculation in a single module, which would only require the arrangement and number of LEDs for the calculation, regardless of the type or controller used.

Lets Discuss

Finally, my question is whether to develop from scratch or fork the project and implement the required changes. I'm asking about the degree of tight coupling between the architecture and controllers/LED strips and whether it's worth building on this architecture.

Before I jump into anything, I'd love to discuss with you and hear your thoughts and opinions. What do you think?