Skip to content
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

LED_effects and Rainbow barf support #416

Closed
wants to merge 3 commits into from
Closed

LED_effects and Rainbow barf support #416

wants to merge 3 commits into from

Conversation

Frix-x
Copy link
Owner

@Frix-x Frix-x commented Dec 21, 2023

No description provided.

)


Co-authored-by: Félix Boisselier <felix@fboisselier.fr>
@Frix-x
Copy link
Owner Author

Frix-x commented Dec 21, 2023

Ok, now I'm ready.

I've made some changes to improve it a little bit. Main one is that almost no one is changing the default colors included in Klippain AFAIK. So I moved them outside of the variables.cfg file. This way, if we want to add new colors and states in the future, we will be able to do it without a breaking change.
If an user wants to change them he can still override the new _LEDS_COLORS_DEFINITION macro to define his own like for all the other Klippain features.

As the color definition macro has another name (not in _USER_VARIABLES), it's not a breaking change in this release, but the list in the current variables.cfg user file will not be used anymore and can be safely removed.

@Frix-x
Copy link
Owner Author

Frix-x commented Dec 21, 2023

@claudioguareschi can you review if this align with your first PR and is ok for you now ?

@Frix-x Frix-x added enhancement New feature or request next version This thing is already done or is planned in the next version in preparation tracking This issue is tracked and work will be done labels Dec 21, 2023
@claudioguareschi
Copy link
Contributor

claudioguareschi commented Dec 21, 2023

Glad to look at it as I get out of work. I also made the changes you requested. Should I continue to target main with the PR or do you want me to target develop or rather this branch (leds-rework)?

@@ -40,7 +40,9 @@ gcode:
_INIT_USERCUSTOM

RESPOND MSG="Klippain started and ready !"


## Set the status LED to ready
Copy link
Collaborator

@Benoitone Benoitone Dec 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why turning on leds on startup?
They never stop cause printer is already in idle state and so they must be manualy turn off...

@EricZimmerman
Copy link
Collaborator

I don't mind this but it should be a variable I'd say I'm variables.cfg

Comment on lines +44 to 46
## Set the status LED to ready
_INIT_LEDS

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a variable

Comment on lines 135 to 142

[gcode_macro _INIT_LEDS]
gcode:
{% if printer["gcode_macro _USER_VARIABLES"].status_leds_enabled %}
STATUS_LEDS COLOR="READY"
{% endif %}

[gcode_macro _INIT_USERCUSTOM]
Copy link
Collaborator

@Benoitone Benoitone Dec 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

point here so if status_leds_enabled, at startup, the lights turn on.

@Surion79
Copy link
Collaborator

I don't mind this but it should be a variable I'd say I'm variables.cfg

I second this. I prefer it to stay in variables.cfg.
Especially the users don't report suddenly changed colors due to a new merge/version. So in this case i'd rather have it stay like this.
Or we get issues that changes in the variables cfg is no longer working. I don't like putting that live and discussing about invisible no longer working features.
Please let it stay in variables.cfg

@EricZimmerman
Copy link
Collaborator

EnableLedsOnStartup: false

By default kind of thing

@claudioguareschi
Copy link
Contributor

Ok... I am using a startup effect that turns on all the leds in a rotating gradient fashion. This effect starts automatically as soon as the config is read and lasts for the time it takes to initialize the printer. This is the effect:

Printer startup effect

[led_effect cl_startup]
leds:
neopixel:caselight
autostart: true
frame_rate: 24
layers:
gradient 0.3 1 add (1.0, 0.0, 0.0),(0.0, 1.0, 0.0),(0.0, 0.0, 1.0)

The duration of this effect is variable and depends on how fast of a raspberry pi you are using and on the complexity of your config.

It may be very short in some instances. On my setup (rpi4), no ercf, led and few sensors it lasts a second or 2.

This effect needs to be turned off or switched to something else once klippain is fully initialized and ready. This is the reason why the leds were turned on at the klippain ready message. Indeed we can set a variable and decide what to do, leds on or off.
The way I would like to do following a logical workflow, you turn on the printer, it goes quickly through the rainbow things and then turns on the LED. I am looking at hooking up to the idle timer to turn off or dim the led to almost nothing when the printer stays idle for a while.

I'd love to get feedback on this.

@EricZimmerman
Copy link
Collaborator

How about a variable names

Led_start_effect

Default is empty
If populated it uses that led effect

@claudioguareschi
Copy link
Contributor

How about a variable names

Led_start_effect

Default is empty If populated it uses that led effect

Unfortunately the way the effects are implemented, is like MCU pins. They are read at the very beginning of the initialization process. The advantage of using an effect marked as autostart is that is run at the very beginning of the config process and it can be turned off once config processing is complete. This gives a little visual cue that something is happening. You know when you turn the printer on, linux scrolls its messages on the screen and then there are a few seconds with a black screen before klipperscreen starts? Thats the time when the effect is run. Unfortunately it cannot be turned on or off with a variable, but it can certainly be eliminated. It is a little silly thing that some people would love some not care for. I agree giving a choice would be ideal but it cannot be done the way led_effects is currently implemented. I am going to try to start an effect at the very beginning of _KLIPPAIN_STARTUP and turn it off at the end, so that I dont have to use athe autostart effect, but I believe the effect would last a very very short time.

@Surion79
Copy link
Collaborator

Would it be possible to run this startup with minimum intensity? So it is barely visible if the implementation requires it. Since led effect is alpha state and 10 months dormant, i highly doubt that it is actively worked on. The base on the led effect is from someone else. (He is named but no repo about it was found) so i doubt there will be base reimplementation of something like this

@claudioguareschi
Copy link
Contributor

Would it be possible to run this startup with minimum intensity? So it is barely visible if the implementation requires it. Since led effect is alpha state and 10 months dormant, i highly doubt that it is actively worked on. The base on the led effect is from someone else. (He is named but no repo about it was found) so i doubt there will be base reimplementation of something like this

The startup rainbow effect is not a must and it can be completely eliminated if that is what you guys desire. Then we can certainly define a variable in variable.cfg to control initial led on or off in klippain_startup. We can use a variable to decide initial led on or off regardless of the initial rainbow startup effect. It is only this effect that cannot be controlled by a variable.

PS do you think led_effects is a dead project? I would like to use for this something actively developed, but I havent found anything else suitable. The library he mentions in his docs is fastled which is a well known library used to control addressable leds in arduinos/esp32 mcus.

@claudioguareschi
Copy link
Contributor

Posted a PR with startup led state controlled by a variable. Is this what you guys were looking for?

Frix-x added a commit that referenced this pull request Feb 1, 2024
* HappyHare MMU integration in Klippain

* Spoolman support

* Multiple MCU templates added or modified, especially MMU templates

* LED system rework to support the LED_effects plugin and rainbow barf, etc... ( #416 )

* TMC Autotune moonraker updater predefined config (add your motor defs to your overrides.cfg or mcu.cfg)

---------

Co-authored-by: Jan-Gerrit Drexhage <102791900+Surion79@users.noreply.github.com>
Co-authored-by: claudioguareschi <33001685+claudioguareschi@users.noreply.github.com>
Co-authored-by: Félix Boisselier <felix@fboisselier.fr>
Co-authored-by: ksummers92 <66363414+ksummers92@users.noreply.github.com>
@Frix-x
Copy link
Owner Author

Frix-x commented Feb 1, 2024

I'm closing this since it was merged inderectly by the lastest big merge in develop :)
Thank you very much for the work!

If you think it's not perfect, as stated in #419 , please open a new PR against the develop branch to start fresh from the latest version :)

@Frix-x Frix-x closed this Feb 1, 2024
@Frix-x Frix-x deleted the leds-rework branch February 1, 2024 11:09
@Benoitone
Copy link
Collaborator

@claudioguareschi
Sorry for the inconvenience on my part on your PR... Which I seem to have stolen from you without meaning to...
On the other hand I encounter an error linked to the [include ../../../macros/hardware_functions/status_leds.cfg] For example the macros SET_NOZZLE_LEDS_ON, SET_NOZZLE_LEDS_OFF or SET_LOGO_LEDS_OFF do not work do you have some idea?
And again sorry for that :(

@claudioguareschi
Copy link
Contributor

@claudioguareschi Sorry for the inconvenience on my part on your PR... Which I seem to have stolen from you without meaning to... On the other hand I encounter an error linked to the [include ../../../macros/hardware_functions/status_leds.cfg] For example the macros SET_NOZZLE_LEDS_ON, SET_NOZZLE_LEDS_OFF or SET_LOGO_LEDS_OFF do not work do you have some idea? And again sorry for that :(

Yeah… I realized I cannot change the led_name variable as it is the actual name of the led chain in config. Also when effects are running, it does override any changes made using the klipper SET_LEDS macro, so for example changing the case light color from klipperscreen it doesn’t work as expected. I have a fix for the set_nozlzle… macros but I want to fix set_leds as well then I will submit a new PR toward develop.

@Benoitone
Copy link
Collaborator

Maybe with same led_name as non "effects" macro and by adding a new variable to check in others macros for caselight and status, like for exemple 'variable_status_leds_type: "status_leds_effects"' and 'variable_status_leds_type: "status_leds"' for status leds hardware macro. Same for caselights hardware macros?

@claudioguareschi
Copy link
Contributor

claudioguareschi commented Feb 2, 2024

I'm closing this since it was merged inderectly by the lastest big merge in develop :) Thank you very much for the work!

If you think it's not perfect, as stated in #419 , please open a new PR against the develop branch to start fresh from the latest version :)

Will do. There are a few minor fixes that needs to be done, see my response to Benoitone.

There is one thing I wanted to discuss with you, if you are interested I can implement it:

It would be a good thing to have a state machine for the different printer state I.e. states would be idle, standby, cleaning_nozzle, purging, leveling, meshing, printing, done_printing, paused, etc where for each state I can set leds color or effects, fan speeds and other stuff that may be needed for that particular state/task. This would simplify to some extent the print_start macro as it would just set the printer state to whatever it is doing ie leveling, heating etc. and the state machine will take care to set the leds, fans, knomi and other minor nuisances. This would be a good approach to prevent the start_print macro to grow disproportionately, let it focus and concern only on the printing steps required to prepare the printer for printing and let the state machine set the nuisance details.

this is not difficult to implement and I would be glad to do it. It would be a somewhat big change to your implementation and I won’t do it if it is not something you are interested in.

If you are interested let me know and maybe make a new branch based on develop I can fork and pull back to.

@claudioguareschi
Copy link
Contributor

Maybe with same led_name as non "effects" macro and by adding a new variable to check in others macros for caselight and status, like for exemple 'variable_status_leds_type: "status_leds_effects"' and 'variable_status_leds_type: "status_leds"' for status leds hardware macro. Same for caselights hardware macros?

I have done just that already. I may need to extend the kipper set_leds macro to turn off any effect enabled on a particular chain if a direct call to set leds comes in for example from kipper screen

@Surion79
Copy link
Collaborator

Surion79 commented Feb 2, 2024

Please open up a new PR as Frix mentioned if you need to fix it. I think it is not the best idea to discuss errors/improvements in a closed pr,

Frix-x added a commit that referenced this pull request Feb 13, 2024
* HappyHare MMU integration in Klippain

* Spoolman support

* Multiple MCU templates added or modified, especially MMU templates

* LED system rework to support the LED_effects plugin and rainbow barf, etc... ( #416 )

* TMC Autotune moonraker updater predefined config (add your motor defs to your overrides.cfg or mcu.cfg)

---------

Co-authored-by: Jan-Gerrit Drexhage <102791900+Surion79@users.noreply.github.com>
Co-authored-by: claudioguareschi <33001685+claudioguareschi@users.noreply.github.com>
Co-authored-by: Félix Boisselier <felix@fboisselier.fr>
Co-authored-by: ksummers92 <66363414+ksummers92@users.noreply.github.com>
reineruhry pushed a commit to reineruhry/klippain that referenced this pull request Feb 13, 2024
* HappyHare MMU integration in Klippain

* Spoolman support

* Multiple MCU templates added or modified, especially MMU templates

* LED system rework to support the LED_effects plugin and rainbow barf, etc... ( Frix-x#416 )

* TMC Autotune moonraker updater predefined config (add your motor defs to your overrides.cfg or mcu.cfg)

---------

Co-authored-by: Jan-Gerrit Drexhage <102791900+Surion79@users.noreply.github.com>
Co-authored-by: claudioguareschi <33001685+claudioguareschi@users.noreply.github.com>
Co-authored-by: Félix Boisselier <felix@fboisselier.fr>
Co-authored-by: ksummers92 <66363414+ksummers92@users.noreply.github.com>
tehniemer added a commit to tehniemer/klippain that referenced this pull request Mar 19, 2024
* BTT S2DW V1.0 and similar RP2040 + lis2dw boards (Frix-x#439)

* Add Octopus Pro 1.0 MCU definition as duplicate of Octopus MCU

* fix typo in BTT_Octopus_Pro_v1.1.cfg (Frix-x#460)

* Turn on filter only if it was used during printing. (Frix-x#380)


Co-authored-by: Jan-Gerrit Drexhage <102791900+Surion79@users.noreply.github.com>

* added parameters to park (Frix-x#391)

* M8P v2.0 SPI fix (Frix-x#389)


Co-authored-by: Félix Boisselier <felix@fboisselier.fr>

* Add per material filament sensor management (Frix-x#381)

* Remove _TIP_SHAPING from End/cancel print macros (Frix-x#357)


Co-authored-by: Jan-Gerrit Drexhage <102791900+Surion79@users.noreply.github.com>
Co-authored-by: Félix Boisselier <felix@fboisselier.fr>

* Klipper SET_PRINT_STATS_INFO compatibility (Frix-x#392)


Co-authored-by: Félix Boisselier <felix@fboisselier.fr>

* Fix error with turning on filter only if it was used during printing. (Frix-x#406)

Fix issue discovered after merging Frix-x#380

* fix missing variable to cancel_print (Frix-x#408)

* filament sensor status checks universal (Frix-x#411)

* proper Shake&Tune integration in Klippain

* add mellow SB2040 v2 and SB2040 Pro toolhead boards (Frix-x#417)

* correct overriders misspelling (Frix-x#425)

* check if heatsoak is configured to verbose message (Frix-x#424)

* typo

* Add pin definitions for Fysetc S6 V2.X

* add TR8x2 leadscrew config for trident

* Add older version of Fysetc mini12864 display

* HappyHare & other related dev (Frix-x#371)

* HappyHare MMU integration in Klippain

* Spoolman support

* Multiple MCU templates added or modified, especially MMU templates

* LED system rework to support the LED_effects plugin and rainbow barf, etc... ( Frix-x#416 )

* TMC Autotune moonraker updater predefined config (add your motor defs to your overrides.cfg or mcu.cfg)

---------

Co-authored-by: Jan-Gerrit Drexhage <102791900+Surion79@users.noreply.github.com>
Co-authored-by: claudioguareschi <33001685+claudioguareschi@users.noreply.github.com>
Co-authored-by: Félix Boisselier <felix@fboisselier.fr>
Co-authored-by: ksummers92 <66363414+ksummers92@users.noreply.github.com>

* fix status leds at startup (Frix-x#448)

* Status leds on startup fix

* display menu and V0 Display (Frix-x#420)

* Better display menu adapted to Klippain

* V0 display support

* Klippain boot logo

---------

Co-authored-by: Elias Huwyler <elias.huwyler@ti8m.ch>

* improved display management structure

* fixed MMU includes for HappyHare symlink

* Add BLTouch support (Frix-x#450)

* fixed nozzle and status led on/off.  (Frix-x#454)

* reverted update manager to main branch

* followed naming scheme for bltouch include as virtual

* moved the machine.cfg include and included additional thermistor defs

* Mellow fly super8 template (Frix-x#463)

* Support for TMC5160 on Z Axis (Frix-x#469)

* added fix to prevent issues when updating Klippain without MMU (Frix-x#462)

* Add configs for Fysetc SB Can TH boards (Frix-x#464)


Co-authored-by: Félix Boisselier <felix@fboisselier.fr>

* fix: make prime line height a variable parameter (Frix-x#466)

Fix Frix-x#465

* fix for extrude when temperature is too low (Frix-x#480)

* Add BTT Kraken MCU support (Frix-x#476)

* Update Fysetc_Spider_v3.x.cfg to fix fan ports (Frix-x#474)

* fix BTT_MMB pin (Frix-x#486)

* added fix for rsense for TMC5160 (Frix-x#489)

* Add support for dockable probes with separate retainer (Frix-x#401)

This is needed for probes like https://github.com/kevinakasam/KlackEnder-Probe

* fix for rsense on TMC5160 Z (Frix-x#490)

* Create stale action workflow (Frix-x#449)


Co-authored-by: Félix Boisselier <felix@fboisselier.fr>

* fixed K-Shake&Tune integration

* Avoid cooling hotend in extruder_preheating Frix-x#495 (Frix-x#496)

* Add a park front macro for toolhead maintenance (Frix-x#494)

* Update MMU include order to allow overriding default HH defs (Frix-x#497)

* avoid led effect flashing on startup if leds desabled on startup (Frix-x#500)

* Added BTT SKR2 board template (Frix-x#503)

* fixed the regression introduced in startup call

* fix typo in stale.yml

* fixed probe pin for BTT_SB2209_RP2040_v1.0 (Frix-x#507)

* LDO Nitehawk MCU template and tachometer management (Frix-x#505)


Co-authored-by: Meindert <19568018+mvdveer@users.noreply.github.com>
Co-authored-by: Akash Patel <akashrpatel@yahoo.com>

* update primeline to make it adaptive (Frix-x#498)


Co-authored-by: Frédéric Beaucamp <88246672+fbeauKmi@users.noreply.github.com>
Co-authored-by: Félix Boisselier <felix@fboisselier.fr>

* fixed missing adaptive primeline variable

* remplaced CANCEL_PRINT by PARK in the automated error management gcode

* fixed typo in LDO Nitehawk manufacturer template

* Add support for Manta_M5P v1.0 and 0.9 degree steppers on Trident Z axis (Frix-x#514)

* fix homing check for PARK in error gcode (Frix-x#513)

* fix typo in Fysetc_ERCF_ERB.cfg (Frix-x#519)

* Update BTT_Kraken_v1.0.cfg, RGB1 fix

listed as PF10, but should be PF12 (pf10 is mcu_min7 already, an endstop)

verified rest of pins as well

* reverted PARK and PARK_FRONT to fail if axis are not homed

* fix PARK with overriden param E (Frix-x#515)

* install and uninstall scripts improvement (Frix-x#511)

* Don't fail uninstall if the backup folder has been removed
* Make uninstall work when backup has sub-directories
* Make sure we don't fail making a backup when there is no current user config folder

* added Mellow Fly Gemini v3 MCU template (Frix-x#527)

* fix pinout for Fysetc_ERB board (Frix-x#530)

* updated homing_override to improve sensorless homing (Frix-x#531)

by using M400 vs the old 2 second dwell time that is not required anymore

* fixed v0_display pin and improved overrides docs (Frix-x#535)

* Update rpi_temp.cfg

Format with _ so a space is in the name, like other temps

* Update cabinet_temp.cfg

* switched to the new minimum_cruise_ratio Klipper parameter

* commented the default minimum_cruise_ratio to not break older Klipper versions

---------

Co-authored-by: Gustavo Ribeiro Alves <145077902+gralves2@users.noreply.github.com>
Co-authored-by: Andrew Wickham <andrewwickham@westfieldgrp.com>
Co-authored-by: Félix Boisselier <felix@fboisselier.fr>
Co-authored-by: Benoitone <63300355+Benoitone@users.noreply.github.com>
Co-authored-by: Jan-Gerrit Drexhage <102791900+Surion79@users.noreply.github.com>
Co-authored-by: Arsène Thieffry <arsene.thieffry@gmail.com>
Co-authored-by: claudioguareschi <33001685+claudioguareschi@users.noreply.github.com>
Co-authored-by: ksummers92 <66363414+ksummers92@users.noreply.github.com>
Co-authored-by: Elias Huwyler <elias.huwyler@gmail.com>
Co-authored-by: Elias Huwyler <elias.huwyler@ti8m.ch>
Co-authored-by: Neil Smith <8648114+nmsmith22389@users.noreply.github.com>
Co-authored-by: Reiner Uhry <24939566+reineruhry@users.noreply.github.com>
Co-authored-by: lokiagent <75763148+lokiagent@users.noreply.github.com>
Co-authored-by: Arcadien <aurelien.labrosse@gmail.com>
Co-authored-by: Tyler Olson <tolson@dlinc.io>
Co-authored-by: Felix Boisselier <f.boisselier@irepa-laser.com>
Co-authored-by: elpopo <68954733+elpopo-eng@users.noreply.github.com>
Co-authored-by: tsk-2222 <111063724+tsk-2222@users.noreply.github.com>
Co-authored-by: Meindert <19568018+mvdveer@users.noreply.github.com>
Co-authored-by: Akash Patel <akashrpatel@yahoo.com>
Co-authored-by: Frédéric Beaucamp <88246672+fbeauKmi@users.noreply.github.com>
Co-authored-by: Birkemosen <Birkemosen@users.noreply.github.com>
Co-authored-by: Eric <saericzimmerman@gmail.com>
Co-authored-by: Magne Rasmussen <magne.rasmussen@gmail.com>
Co-authored-by: Parker <infowolfe@gmail.com>
ksummers92 added a commit to ksummers92/klippain that referenced this pull request Jun 22, 2024
* Fysetc Catalyst Config

* added respond on idle_timeout

* sherpa mini config (Frix-x#385)


Co-authored-by: Félix Boisselier <felix@fboisselier.fr>

* switch moonraker update management to dev channel (Frix-x#390)

* Update orbiter2.0.cfg (Frix-x#405)

Add comment about required current. At the default of 0.45 on the Orbiter 2 motor, very poor performance will occur including significant underextrusion on infill, etc.

* chore(mcu): properly label CAN H/L (Frix-x#418)

TX and RX are not helpful, looking at the back of the m8p v2 shows that RX is high, and TX is low.

* added back the proper idle timeout behavior

* BTT S2DW V1.0 and similar RP2040 + lis2dw boards (Frix-x#439)

* Add Octopus Pro 1.0 MCU definition as duplicate of Octopus MCU

* fix typo in BTT_Octopus_Pro_v1.1.cfg (Frix-x#460)

* Turn on filter only if it was used during printing. (Frix-x#380)


Co-authored-by: Jan-Gerrit Drexhage <102791900+Surion79@users.noreply.github.com>

* added parameters to park (Frix-x#391)

* M8P v2.0 SPI fix (Frix-x#389)


Co-authored-by: Félix Boisselier <felix@fboisselier.fr>

* Add per material filament sensor management (Frix-x#381)

* Remove _TIP_SHAPING from End/cancel print macros (Frix-x#357)


Co-authored-by: Jan-Gerrit Drexhage <102791900+Surion79@users.noreply.github.com>
Co-authored-by: Félix Boisselier <felix@fboisselier.fr>

* Klipper SET_PRINT_STATS_INFO compatibility (Frix-x#392)


Co-authored-by: Félix Boisselier <felix@fboisselier.fr>

* Fix error with turning on filter only if it was used during printing. (Frix-x#406)

Fix issue discovered after merging Frix-x#380

* fix missing variable to cancel_print (Frix-x#408)

* filament sensor status checks universal (Frix-x#411)

* proper Shake&Tune integration in Klippain

* add mellow SB2040 v2 and SB2040 Pro toolhead boards (Frix-x#417)

* correct overriders misspelling (Frix-x#425)

* check if heatsoak is configured to verbose message (Frix-x#424)

* typo

* Add pin definitions for Fysetc S6 V2.X

* add TR8x2 leadscrew config for trident

* Add older version of Fysetc mini12864 display

* HappyHare & other related dev (Frix-x#371)

* HappyHare MMU integration in Klippain

* Spoolman support

* Multiple MCU templates added or modified, especially MMU templates

* LED system rework to support the LED_effects plugin and rainbow barf, etc... ( Frix-x#416 )

* TMC Autotune moonraker updater predefined config (add your motor defs to your overrides.cfg or mcu.cfg)

---------

Co-authored-by: Jan-Gerrit Drexhage <102791900+Surion79@users.noreply.github.com>
Co-authored-by: claudioguareschi <33001685+claudioguareschi@users.noreply.github.com>
Co-authored-by: Félix Boisselier <felix@fboisselier.fr>
Co-authored-by: ksummers92 <66363414+ksummers92@users.noreply.github.com>

* fix status leds at startup (Frix-x#448)

* Status leds on startup fix

* display menu and V0 Display (Frix-x#420)

* Better display menu adapted to Klippain

* V0 display support

* Klippain boot logo

---------

Co-authored-by: Elias Huwyler <elias.huwyler@ti8m.ch>

* improved display management structure

* fixed MMU includes for HappyHare symlink

* Add BLTouch support (Frix-x#450)

* fixed nozzle and status led on/off.  (Frix-x#454)

* reverted update manager to main branch

* followed naming scheme for bltouch include as virtual

* moved the machine.cfg include and included additional thermistor defs

* Mellow fly super8 template (Frix-x#463)

* Support for TMC5160 on Z Axis (Frix-x#469)

* added fix to prevent issues when updating Klippain without MMU (Frix-x#462)

* Add configs for Fysetc SB Can TH boards (Frix-x#464)


Co-authored-by: Félix Boisselier <felix@fboisselier.fr>

* fix: make prime line height a variable parameter (Frix-x#466)

Fix Frix-x#465

* fix for extrude when temperature is too low (Frix-x#480)

* Add BTT Kraken MCU support (Frix-x#476)

* Update Fysetc_Spider_v3.x.cfg to fix fan ports (Frix-x#474)

* fix BTT_MMB pin (Frix-x#486)

* added fix for rsense for TMC5160 (Frix-x#489)

* Add support for dockable probes with separate retainer (Frix-x#401)

This is needed for probes like https://github.com/kevinakasam/KlackEnder-Probe

* fix for rsense on TMC5160 Z (Frix-x#490)

* Create stale action workflow (Frix-x#449)


Co-authored-by: Félix Boisselier <felix@fboisselier.fr>

* fixed K-Shake&Tune integration

* Avoid cooling hotend in extruder_preheating Frix-x#495 (Frix-x#496)

* Add a park front macro for toolhead maintenance (Frix-x#494)

* Update MMU include order to allow overriding default HH defs (Frix-x#497)

* avoid led effect flashing on startup if leds desabled on startup (Frix-x#500)

* Added BTT SKR2 board template (Frix-x#503)

* fixed the regression introduced in startup call

* fix typo in stale.yml

* fixed probe pin for BTT_SB2209_RP2040_v1.0 (Frix-x#507)

* LDO Nitehawk MCU template and tachometer management (Frix-x#505)


Co-authored-by: Meindert <19568018+mvdveer@users.noreply.github.com>
Co-authored-by: Akash Patel <akashrpatel@yahoo.com>

* update primeline to make it adaptive (Frix-x#498)


Co-authored-by: Frédéric Beaucamp <88246672+fbeauKmi@users.noreply.github.com>
Co-authored-by: Félix Boisselier <felix@fboisselier.fr>

* fixed missing adaptive primeline variable

* remplaced CANCEL_PRINT by PARK in the automated error management gcode

* fixed typo in LDO Nitehawk manufacturer template

* Add support for Manta_M5P v1.0 and 0.9 degree steppers on Trident Z axis (Frix-x#514)

* fix homing check for PARK in error gcode (Frix-x#513)

* fix typo in Fysetc_ERCF_ERB.cfg (Frix-x#519)

* Update BTT_Kraken_v1.0.cfg, RGB1 fix

listed as PF10, but should be PF12 (pf10 is mcu_min7 already, an endstop)

verified rest of pins as well

* reverted PARK and PARK_FRONT to fail if axis are not homed

* fix PARK with overriden param E (Frix-x#515)

* install and uninstall scripts improvement (Frix-x#511)

* Don't fail uninstall if the backup folder has been removed
* Make uninstall work when backup has sub-directories
* Make sure we don't fail making a backup when there is no current user config folder

* added Mellow Fly Gemini v3 MCU template (Frix-x#527)

* fix pinout for Fysetc_ERB board (Frix-x#530)

* updated homing_override to improve sensorless homing (Frix-x#531)

by using M400 vs the old 2 second dwell time that is not required anymore

* fixed v0_display pin and improved overrides docs (Frix-x#535)

* Update rpi_temp.cfg

Format with _ so a space is in the name, like other temps

* Update cabinet_temp.cfg

* switched to the new minimum_cruise_ratio Klipper parameter

* commented the default minimum_cruise_ratio to not break older Klipper versions

* added Beacon accelerometer support (Frix-x#552)

* Happy hare v2.5 merge (#8)

* make Klippain compatible with HH v2.5

* start print for HH > v2.5

* move HHv2.5 init in _KLIPPAIN_MMU_INIT

* add some info in mmu.md for 2.5

* add sync fonction with HH>2.5

* add eject slicer option for HH>2.5

* typo error

* Update end_print.cfg

Change EJECT to boolean for MMU_END

* show HH version on startup

* added custom4..9 in start_print (Frix-x#539)

* updated beeper sections (Frix-x#549)

by switching to pwm_cycle_time instead of output pin

* removed M204 in favor of SET_VELOCITY_LIMIT (Frix-x#555)

* support for LDO Picobilical (Frix-x#533)

* removed M204 for SET_VELOCITY_LIMIT (Frix-x#554)

* removed last M204 for SET_VELOCITY_LIMIT (Frix-x#553)

* added Beacon accelerometer support (Frix-x#552)

* deprecate HH<v2.5 and small typos

* removed old artifacts from TMC2240 init feature

Please use https://github.com/andrewmcgr/klipper_tmc_autotune instead!

* error on changes in _INIT_CHECK_MMU

---------

Co-authored-by: Benoitone <63300355+Benoitone@users.noreply.github.com>
Co-authored-by: Félix Boisselier <felix@fboisselier.fr>
Co-authored-by: Jan-Gerrit Drexhage <102791900+Surion79@users.noreply.github.com>
Co-authored-by: Colten Edwards <cd.edwards@sasktel.net>
Co-authored-by: Nick Danyluk <ndanyluk7@gmail.com>
Co-authored-by: Svennixx <xsvenhd@hotmail.com>

* Align hardware/mmu.cfg with upstream

* Update nozzle brushing to accomodate offset for situations in which standard nozzle brushing parameters lead to undesired interactions.

* Modify starting move prior to brush procedure to accomodate for brush_offset

* Fix brush center calculation

* Add some debugging messages

* ???

* Fixed brush stroke maths

* Removed unneccessary if statement

* Update Shake&Tune path

This is due to a change in Shake&Tune v3.0.0

---------

Co-authored-by: Surion79 <102791900+Surion79@users.noreply.github.com>
Co-authored-by: Félix Boisselier <felix@fboisselier.fr>
Co-authored-by: Benoitone <63300355+Benoitone@users.noreply.github.com>
Co-authored-by: Eric <saericzimmerman@gmail.com>
Co-authored-by: Devon Hazelett <dhazelett@users.noreply.github.com>
Co-authored-by: Gustavo Ribeiro Alves <145077902+gralves2@users.noreply.github.com>
Co-authored-by: Andrew Wickham <andrewwickham@westfieldgrp.com>
Co-authored-by: tehniemer <jrniemand@gmail.com>
Co-authored-by: Arsène Thieffry <arsene.thieffry@gmail.com>
Co-authored-by: claudioguareschi <33001685+claudioguareschi@users.noreply.github.com>
Co-authored-by: Elias Huwyler <elias.huwyler@gmail.com>
Co-authored-by: Elias Huwyler <elias.huwyler@ti8m.ch>
Co-authored-by: Neil Smith <8648114+nmsmith22389@users.noreply.github.com>
Co-authored-by: Reiner Uhry <24939566+reineruhry@users.noreply.github.com>
Co-authored-by: lokiagent <75763148+lokiagent@users.noreply.github.com>
Co-authored-by: Arcadien <aurelien.labrosse@gmail.com>
Co-authored-by: Tyler Olson <tolson@dlinc.io>
Co-authored-by: Felix Boisselier <f.boisselier@irepa-laser.com>
Co-authored-by: elpopo <68954733+elpopo-eng@users.noreply.github.com>
Co-authored-by: tsk-2222 <111063724+tsk-2222@users.noreply.github.com>
Co-authored-by: Meindert <19568018+mvdveer@users.noreply.github.com>
Co-authored-by: Akash Patel <akashrpatel@yahoo.com>
Co-authored-by: Frédéric Beaucamp <88246672+fbeauKmi@users.noreply.github.com>
Co-authored-by: Birkemosen <Birkemosen@users.noreply.github.com>
Co-authored-by: Magne Rasmussen <magne.rasmussen@gmail.com>
Co-authored-by: Parker <infowolfe@gmail.com>
Co-authored-by: Svennixx <xsvenhd@hotmail.com>
Co-authored-by: Colten Edwards <cd.edwards@sasktel.net>
Co-authored-by: Nick Danyluk <ndanyluk7@gmail.com>
ksummers92 added a commit to ksummers92/klippain that referenced this pull request Jun 22, 2024
* feat: add LDO Leviathan main board (Frix-x#365)

Signed-off-by: Stefan Dej <meteyou@gmail.com>

* fix fans pins in BTT_Manta_M8P_v2.0.cfg

* fix wrong LDO Leviathan cfg location

* added Octopus Pro v1.1 template (Frix-x#349) (Frix-x#367)

Co-authored-by: Jan-Gerrit Drexhage <102791900+Surion79@users.noreply.github.com>

* Fysetc Catalyst Config

* added respond on idle_timeout

* sherpa mini config (Frix-x#385)


Co-authored-by: Félix Boisselier <felix@fboisselier.fr>

* switch moonraker update management to dev channel (Frix-x#390)

* Update orbiter2.0.cfg (Frix-x#405)

Add comment about required current. At the default of 0.45 on the Orbiter 2 motor, very poor performance will occur including significant underextrusion on infill, etc.

* chore(mcu): properly label CAN H/L (Frix-x#418)

TX and RX are not helpful, looking at the back of the m8p v2 shows that RX is high, and TX is low.

* added back the proper idle timeout behavior

* BTT S2DW V1.0 and similar RP2040 + lis2dw boards (Frix-x#439)

* Add Octopus Pro 1.0 MCU definition as duplicate of Octopus MCU

* fix typo in BTT_Octopus_Pro_v1.1.cfg (Frix-x#460)

* Turn on filter only if it was used during printing. (Frix-x#380)


Co-authored-by: Jan-Gerrit Drexhage <102791900+Surion79@users.noreply.github.com>

* added parameters to park (Frix-x#391)

* M8P v2.0 SPI fix (Frix-x#389)


Co-authored-by: Félix Boisselier <felix@fboisselier.fr>

* Add per material filament sensor management (Frix-x#381)

* Remove _TIP_SHAPING from End/cancel print macros (Frix-x#357)


Co-authored-by: Jan-Gerrit Drexhage <102791900+Surion79@users.noreply.github.com>
Co-authored-by: Félix Boisselier <felix@fboisselier.fr>

* Klipper SET_PRINT_STATS_INFO compatibility (Frix-x#392)


Co-authored-by: Félix Boisselier <felix@fboisselier.fr>

* Fix error with turning on filter only if it was used during printing. (Frix-x#406)

Fix issue discovered after merging Frix-x#380

* fix missing variable to cancel_print (Frix-x#408)

* filament sensor status checks universal (Frix-x#411)

* proper Shake&Tune integration in Klippain

* add mellow SB2040 v2 and SB2040 Pro toolhead boards (Frix-x#417)

* correct overriders misspelling (Frix-x#425)

* check if heatsoak is configured to verbose message (Frix-x#424)

* typo

* Add pin definitions for Fysetc S6 V2.X

* add TR8x2 leadscrew config for trident

* Add older version of Fysetc mini12864 display

* HappyHare & other related dev (Frix-x#371)

* HappyHare MMU integration in Klippain

* Spoolman support

* Multiple MCU templates added or modified, especially MMU templates

* LED system rework to support the LED_effects plugin and rainbow barf, etc... ( Frix-x#416 )

* TMC Autotune moonraker updater predefined config (add your motor defs to your overrides.cfg or mcu.cfg)

---------

Co-authored-by: Jan-Gerrit Drexhage <102791900+Surion79@users.noreply.github.com>
Co-authored-by: claudioguareschi <33001685+claudioguareschi@users.noreply.github.com>
Co-authored-by: Félix Boisselier <felix@fboisselier.fr>
Co-authored-by: ksummers92 <66363414+ksummers92@users.noreply.github.com>

* fix status leds at startup (Frix-x#448)

* Status leds on startup fix

* display menu and V0 Display (Frix-x#420)

* Better display menu adapted to Klippain

* V0 display support

* Klippain boot logo

---------

Co-authored-by: Elias Huwyler <elias.huwyler@ti8m.ch>

* improved display management structure

* fixed MMU includes for HappyHare symlink

* Add BLTouch support (Frix-x#450)

* fixed nozzle and status led on/off.  (Frix-x#454)

* reverted update manager to main branch

* followed naming scheme for bltouch include as virtual

* moved the machine.cfg include and included additional thermistor defs

* Mellow fly super8 template (Frix-x#463)

* Support for TMC5160 on Z Axis (Frix-x#469)

* added fix to prevent issues when updating Klippain without MMU (Frix-x#462)

* Add configs for Fysetc SB Can TH boards (Frix-x#464)


Co-authored-by: Félix Boisselier <felix@fboisselier.fr>

* fix: make prime line height a variable parameter (Frix-x#466)

Fix Frix-x#465

* fix for extrude when temperature is too low (Frix-x#480)

* Add BTT Kraken MCU support (Frix-x#476)

* Update Fysetc_Spider_v3.x.cfg to fix fan ports (Frix-x#474)

* fix BTT_MMB pin (Frix-x#486)

* added fix for rsense for TMC5160 (Frix-x#489)

* Add support for dockable probes with separate retainer (Frix-x#401)

This is needed for probes like https://github.com/kevinakasam/KlackEnder-Probe

* fix for rsense on TMC5160 Z (Frix-x#490)

* Create stale action workflow (Frix-x#449)


Co-authored-by: Félix Boisselier <felix@fboisselier.fr>

* fixed K-Shake&Tune integration

* Avoid cooling hotend in extruder_preheating Frix-x#495 (Frix-x#496)

* Add a park front macro for toolhead maintenance (Frix-x#494)

* Update MMU include order to allow overriding default HH defs (Frix-x#497)

* avoid led effect flashing on startup if leds desabled on startup (Frix-x#500)

* Added BTT SKR2 board template (Frix-x#503)

* fixed the regression introduced in startup call

* fix typo in stale.yml

* fixed probe pin for BTT_SB2209_RP2040_v1.0 (Frix-x#507)

* LDO Nitehawk MCU template and tachometer management (Frix-x#505)


Co-authored-by: Meindert <19568018+mvdveer@users.noreply.github.com>
Co-authored-by: Akash Patel <akashrpatel@yahoo.com>

* update primeline to make it adaptive (Frix-x#498)


Co-authored-by: Frédéric Beaucamp <88246672+fbeauKmi@users.noreply.github.com>
Co-authored-by: Félix Boisselier <felix@fboisselier.fr>

* fixed missing adaptive primeline variable

* remplaced CANCEL_PRINT by PARK in the automated error management gcode

* fixed typo in LDO Nitehawk manufacturer template

* Add support for Manta_M5P v1.0 and 0.9 degree steppers on Trident Z axis (Frix-x#514)

* fix homing check for PARK in error gcode (Frix-x#513)

* fix typo in Fysetc_ERCF_ERB.cfg (Frix-x#519)

* Update BTT_Kraken_v1.0.cfg, RGB1 fix

listed as PF10, but should be PF12 (pf10 is mcu_min7 already, an endstop)

verified rest of pins as well

* reverted PARK and PARK_FRONT to fail if axis are not homed

* fix PARK with overriden param E (Frix-x#515)

* install and uninstall scripts improvement (Frix-x#511)

* Don't fail uninstall if the backup folder has been removed
* Make uninstall work when backup has sub-directories
* Make sure we don't fail making a backup when there is no current user config folder

* added Mellow Fly Gemini v3 MCU template (Frix-x#527)

* fix pinout for Fysetc_ERB board (Frix-x#530)

* updated homing_override to improve sensorless homing (Frix-x#531)

by using M400 vs the old 2 second dwell time that is not required anymore

* fixed v0_display pin and improved overrides docs (Frix-x#535)

* Update rpi_temp.cfg

Format with _ so a space is in the name, like other temps

* Update cabinet_temp.cfg

* switched to the new minimum_cruise_ratio Klipper parameter

* commented the default minimum_cruise_ratio to not break older Klipper versions

* added Beacon accelerometer support (Frix-x#552)

* Update Shake&Tune path

This is due to a change in Shake&Tune v3.0.0

* fixed max_z bug in PARK macro

* Update BTT_SKR_2.cfg to fix EXP1_4 typo (Frix-x#578)

* Nozzle cleaning parameters update (Frix-x#569)

* add built in adxl sensor from nitehawk sb board (Frix-x#602)

* add: mcu Fystec Cheetah v3 (Frix-x#604)

---------

Signed-off-by: Stefan Dej <meteyou@gmail.com>
Co-authored-by: Stefan Dej <meteyou@gmail.com>
Co-authored-by: Félix Boisselier <felix@fboisselier.fr>
Co-authored-by: Jan-Gerrit Drexhage <102791900+Surion79@users.noreply.github.com>
Co-authored-by: Benoitone <63300355+Benoitone@users.noreply.github.com>
Co-authored-by: Eric <saericzimmerman@gmail.com>
Co-authored-by: Devon Hazelett <dhazelett@users.noreply.github.com>
Co-authored-by: Gustavo Ribeiro Alves <145077902+gralves2@users.noreply.github.com>
Co-authored-by: Andrew Wickham <andrewwickham@westfieldgrp.com>
Co-authored-by: tehniemer <jrniemand@gmail.com>
Co-authored-by: Arsène Thieffry <arsene.thieffry@gmail.com>
Co-authored-by: claudioguareschi <33001685+claudioguareschi@users.noreply.github.com>
Co-authored-by: Elias Huwyler <elias.huwyler@gmail.com>
Co-authored-by: Elias Huwyler <elias.huwyler@ti8m.ch>
Co-authored-by: Neil Smith <8648114+nmsmith22389@users.noreply.github.com>
Co-authored-by: Reiner Uhry <24939566+reineruhry@users.noreply.github.com>
Co-authored-by: lokiagent <75763148+lokiagent@users.noreply.github.com>
Co-authored-by: Arcadien <aurelien.labrosse@gmail.com>
Co-authored-by: Tyler Olson <tolson@dlinc.io>
Co-authored-by: Felix Boisselier <f.boisselier@irepa-laser.com>
Co-authored-by: elpopo <68954733+elpopo-eng@users.noreply.github.com>
Co-authored-by: tsk-2222 <111063724+tsk-2222@users.noreply.github.com>
Co-authored-by: Meindert <19568018+mvdveer@users.noreply.github.com>
Co-authored-by: Akash Patel <akashrpatel@yahoo.com>
Co-authored-by: Frédéric Beaucamp <88246672+fbeauKmi@users.noreply.github.com>
Co-authored-by: Birkemosen <Birkemosen@users.noreply.github.com>
Co-authored-by: Magne Rasmussen <magne.rasmussen@gmail.com>
Co-authored-by: Parker <infowolfe@gmail.com>
Co-authored-by: Svennixx <xsvenhd@hotmail.com>
Co-authored-by: dev-aphex <dev-aphex@users.noreply.github.com>
Co-authored-by: Minims <github@minims.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request next version This thing is already done or is planned in the next version in preparation tracking This issue is tracked and work will be done
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants