-
-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STATUS_LEDS not called when using neopixel_caselight_effects.cfg without status_leds*.cfg #537
Comments
This is not a bug but "normal":
However, you are right, the caselight effects I don't know what they should do... But your fix would break the two previous point because standard caselights would also get the colors... |
Id think most peoples case lights are all white vs RGB? |
For me |
I was looking at this issue when switsching my V0.2 to klippain. It has the "Disco on a Matchstick"-PCB boards and a BARF-style board for the kirigami bed mount. To get the lights actually do something except lighting up, i applied that quick adjustment. I actually thought that the idea of caselight_effects was to actually use the effects, especially because of this section in status_leds.cfg:
So there is a call to set "cl_" effect, but it is basically only used once in startup.cfg to set the caselight effect to READY. That is why i thought there i was something missing there. |
All the case light effect are based on this, like QGL, heating, pause, printing etc... |
Maybe must add |
If you are not using actual status_leds, but only caselights, this leads to SET_LED_EFFECT calls to statuslights which are not defined. |
so maybe add a new user_variable like and use |
i have neo pixel sticks in my printer and only use them for white and off. how can this be achieved with this change? I don't need a fully colored printer for the whole print. i like it white for better timelapse videos |
Don't use the LED effects cfg? |
i want to use it for toolhead but not for case light? |
This PR is only for the issue happening when only one of the neopixel caselight is include in printer.cfg without any status_led |
But if you only want white color for caselight neopixel you can include neopixel_caselight.cfg in your printer.cfg and override _LEDS_COLORS_DEFINITION macro |
I noticed this problem on a new printer with RGB caselights and no stealthburner LED's. Uncommenting neopixel_caselight in printer.cfg enables all the caselight effects, but they are never called by PRINT_START or other macro's because the macros all have IF statements that only trigger if "status_leds_enables" is true, but not "status_leds_caselights". Seems like making the change below would be minimal impact but would fix the problem: ADD TO MACROS: ADD AN "OR" CONDITION TO STATUS LEDS CALLS IN MACROS:
(I should say I have no idea if the syntax for the "or" statement I'm proposing is correct or not, but I think you get the idea. :) ) |
📌 This issue has been marked as stale because it has not had activity in the past 30 days. |
This issue was closed due to inactivity for 14 days. Feel free to reopen it if you think it was an error or if you have new information or progress to share |
📌 This issue has been marked as stale because it has not had activity in the past 30 days. |
This issue was closed due to inactivity for 14 days. Feel free to reopen it if you think it was an error or if you have new information or progress to share |
Bonjour, Dans le cadre de ma configuration j'aimerai pouvoir utiliser le caselight sans led effect et le status led avec led effect, mais actuellement la variable d'activation du led effect est commune aux deux type d'éclairage. La solution la plus simple serait de modifier deux fichier :
Par avance merci de prendre un peu de temps pour cette légère amélioration |
Klippain branch
Version
v4.3
Describe the bug and expected behavior
when including neopixel_caselight_effects.cfg without any of the status_leds config files, caselight effects are not triggered in any of the macros, like START_PRINT, END_PRINT, etc.
The call to STATUS_LEDS in those scripts is only processed if variable_status_leds_enabled is set to True.
As a quick fix i replaced
{% set status_leds_enabled = printer["gcode_macro _USER_VARIABLES"].status_leds_enabled %}
with
{% set status_leds_enabled = printer["gcode_macro _USER_VARIABLES"].status_leds_enabled or printer["gcode_macro _USER_VARIABLES"].status_leds_caselight_enabled %}
in all those scripts.
Additional information and klippy.log
No response
The text was updated successfully, but these errors were encountered: