Closed cime closed 1 month ago
That's a neat idea, but I am thinking if it wouldn't make more sense to define a gcode instead of an effect. Then it could be used more universally. In that case I also wouldn't add it to LED effect.
I imagine it like this:
[event homing_start]
event: homing:home_rails_begin
gcode: SET_LED_EFFECT EFFECT=homing
I needed a way to change LED effect when using Danger Klipper's sensorless homing, so I created this module which changes LED effect whenever a Klipper event is triggered. Not sure if something like this belongs to the main LED module or not, but if you see it fit feel free to use or I can create a PR.
Example usage:
led_effect_event.py: