I dove in to WLED today and got my project about 95% there. I’ll split up questions in to other topics to keep things tidy.
My system has four segments. I created presets that operate on one or multiple segments. For example, I might have:
- Left On and Left Off - apply to segment 1
- Right On and Right Off - apply to segment 2
- Line On and Line Off - apply to segment 3 and 4
- All On and All Off - apply to all four segments
I am triggering patterns using applyPreset(x) based on inputs in the usermod V2 loop. I noticed I can applyPreset(LeftOn) and it starts animating, and if the other input is triggered it runs applyPreset(RightOn) and it animates at the same time – two segments running.
How do I stop a preset? I created the “off” presets to run those, but I’m not sure if this is the appropriate approach.
Thanks for any tips. The idea is someone could use with web UI to assign whatever effects and colors and settings to a present # that the usermod invokes, allowing non-programmers to pick what happens when certain input conditions are met.
I have a long background with embedded C programming, and hobbyist work on Arduinos and such, but don’t know C++ but it’s been fun trying to figure this out