klipper-led_effect
klipper-led_effect copied to clipboard
support for effect led parameters
Would love to be able to configure a generic/reusable effect that can be applied to different leds using parameters or similar. Reading through the docs I don't think this is possible currently?
For example something like the below or a predefined LEDS parameter on SET_LED_EFFECT that accepts comma-separated values.
[led_effect panel_idle]
autostart: true
frame_rate: 24
leds:
neopixel:{params.LEDS}
layers:
breathing 10 1 top (.5,.5,1)
Correct. This is currently only possible for layer parameters, not for setting LEDs. Implementing this is related to #24
@julianschill maybe another more simple solution could be a wildcard or list leds setting (like leds: * or leds: neopixel:a|neopixel:b) that creates multiple instances of the effect on startup, for all or the specified leds with the led name as suffix?
Two more ideas/alternative workarounds that works with the limitation of one klipper object per config object @julianschill :
- Separate effect and led_effect config objects (i.e. universal effect that can be applied to multiple leds separately, each led_effect has reference to one or more effects and one or more leds)
- A copy led effect config object that references an existing led effect and just replaces/overwrites the led setting