Jump to content

LED Effects for QGL


Recommended Posts

Hi All,

Just tried my hand in setting up the LED Effects plugin for Klipper and wanted to know if this scenario is possible. Keep in mind, the LED effect for QGL is already set up I am just unsure of how to call it once I run that command. I have sensorless homing with TAP.

When I run QGL, I would like for all of the LED's to turn off but flash every time the bed is probed. Once complete, the LED's return to the ready state (which I get and have an LED effect for as well).

Has anyone accomplished this?

Link to comment
Share on other sites

Posted (edited)

This is what I did for mine

[gcode_macro PRINT_START]
gcode:
    ... first part of your print_start
    _STATUS_CALIBRATING_Z  # or whatever you named the QGL LED effects
    QGL
    _STATUS_STANDBY # or as appropriate for your setup
    ... remainder of your print_start
    
    
[gcode_macro _STATUS_CALIBRATING_Z]
gcode:
    STOP_LED_EFFECTS
    SET_LED_EFFECT EFFECT=sb_logo_calibrating_z
    _SET_NOZZLE_LEDS_ON
    SET_LED_EFFECT EFFECT=bed_rainbow
    
[gcode_macro _STATUS_STANDBY]
gcode:
    STOP_LED_EFFECTS
    SET_LED_EFFECT EFFECT=sb_nozzle_standby
    SET_LED_EFFECT EFFECT=sb_logo_standby
    SET_LED_EFFECT EFFECT=bed_rainbow

 

Edited by scul
Link to comment
Share on other sites

Thanks for your reply. Looking at this, it seems that the led effect would run consistently through the QGL process no? I am seeking to have the led flash per probe then turn off until it gets to its next probe point, then flash every time it probes and so on.

Link to comment
Share on other sites

Unfortunately, AFAIK you wouldn't be able to change the LED effects mid QGL, unless you edit the source code for that macro.

Luckily, the HOMING effect layer exists...

Link to comment
Share on other sites

Yes, I have that installed (and saw your git 😉 claudermilk) but honestly, I am unsure of how to implement that. I get setting up the LED effect parameters (I have the simulator) but calling it after it does qgl (and if necessary renaming existing) is where I get stuck.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...