Group macros by topic, add Blobifier, fix first tool change
- Split the macro files into folders by topic (print, heating, afc, pressure_advance, spoolman, leds, sensors); klipper-macros.cfg is the one file printer.cfg includes. Macros moved unchanged; the effective config is identical apart from the paths of the PA shell scripts. - Add the modified Blobifier (Turtleblobifier for AFC) and define [save_variables] once in save_variables.cfg instead of in both blobifier.cfg and the PA macros (same file, bd_pa_variables.cfg). - PRINT_WARMUP: heat to the loaded lane's temperature before the first tool change. AFC skips heating when the loaded lane's tool number is not in the print file's temperature list, and the unload then failed below min_extrude_temp. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6dbb4ca3fb
commit
eaf9c82617
27 files changed
+1366
-340
No files matched your search
@@ -0,0 +1,350 @@
|
||||
# https://github.com/tanaes/whopping_Voron_mods/blob/main/LEDs/Rainbow_Barf_Logo_LED/Code/stealthburner_led_effects_barf.cfg
|
||||
# Macros for setting the status leds on the Voron StealthBurner toolhead (or for any neopixel-type leds).
|
||||
#
|
||||
# You will need to configure a neopixel (or other addressable led, such as dotstar). See
|
||||
# https://www.klipper3d.org/Config_Reference.html#neopixel for configuration details.
|
||||
|
||||
|
||||
#####################################
|
||||
# INSTRUCTIONS #
|
||||
#####################################
|
||||
# How to use all this stuff:
|
||||
#
|
||||
# 1. Copy this .cfg file into your Klipper config directory and then add [include stealthburner_leds.cfg]
|
||||
# to the top of your printer.cfg in order for register the LEDs and macros with Klipper.
|
||||
# 2. Define your LEDs by editing [neopixel sb_leds] below and entering the data pin from your control board
|
||||
# as well as the color order.
|
||||
#
|
||||
# Note: RGB and RGBW are different and must be defined explicitly. RGB and RGBW are also not able to
|
||||
# be mix-and-matched in the same chain. A separate data line would be needed for proper functioning.
|
||||
#
|
||||
# RGBW LEDs will have a visible yellow-ish phosphor section to the chip. If your LEDs do not have
|
||||
# this yellow portion, you have RGB LEDs.
|
||||
#
|
||||
# 3. Save your config and restart Klipper.
|
||||
#
|
||||
# Note: We set RED and BLUE to 1.0 to make it easier for users and supporters to detect
|
||||
# misconfigurations or miswiring. The default color format is for Neopixels with a dedicated
|
||||
# white LED. On startup, all three SB LEDs should light up.
|
||||
#
|
||||
# If you get random colors across your LEDs, change the color_order to GRB and restart. Then
|
||||
# omit the W for each suggested color_order in the next paragraph.
|
||||
#
|
||||
# If you get MAGENTA, your color order is correct. If you get CYAN, you need to use RGBW. If
|
||||
# you get YELLOW, you need to use BRGW (note that BRG is only supported in the latest Klipper
|
||||
# version).
|
||||
#
|
||||
# 4. Once you have confirmed that the LEDs are set up correctly, you must now decide where you want
|
||||
# these macros called up...which means adding them to your existing gcode macros. NOTHING will happen
|
||||
# unless you add the STATUS_????? macros to your existing gcode macros.
|
||||
#
|
||||
# Example: add STATUS_LEVELING to the beginning of your QGL gcode macro, and then add STATUS_READY
|
||||
# to the end of it to set the logo LED and nozzle LEDs back to the `ready` state.
|
||||
#
|
||||
# Example: add STATUS_CLEANING to the beginning of your nozzle-cleaning macro, and then STATUS_READY
|
||||
# to the end of it to return the LEDs back to `ready` state.
|
||||
#
|
||||
# 5. Feel free to change colors of each macro, create new ones if you have a need to. The macros provided below
|
||||
# are just an example of what is possible. If you want to try some more complex animations, you will most
|
||||
# likely have to use WLED with Moonraker and a small micro-controller (please see the LED thread for help inside
|
||||
# of the stealthburner_beta channel on Discord).
|
||||
#
|
||||
#####################################
|
||||
# END INSTRUCTRUCTIONS #
|
||||
#####################################
|
||||
|
||||
|
||||
[neopixel sb_leds]
|
||||
pin: nhk:PD3
|
||||
# The pin connected to the neopixel. This parameter must be provided.
|
||||
chain_count: 10
|
||||
# The number of Neopixel chips that are "daisy chained" to the
|
||||
# provided pin. The default is 1 (which indicates only a single
|
||||
# Neopixel is connected to the pin).
|
||||
# color_order: GRB, GRB, GRB, GRB, GRB, GRB, GRB, GRB, GRBW, GRBW
|
||||
color_order: GRB, GRB, GRB, GRB, GRB, GRB, GRB, GRB, GRB, GRB
|
||||
# Set the pixel order required by the LED hardware. Options are GRB,
|
||||
# RGB, GRBW, or RGBW. The default is GRB.
|
||||
initial_RED: 1.0
|
||||
initial_GREEN: 0.0
|
||||
initial_BLUE: 1.0
|
||||
initial_WHITE: 0.0
|
||||
# Sets the initial LED color of the Neopixel. Each value should be
|
||||
# between 0.0 and 1.0. The WHITE option is only available on RGBW
|
||||
# LEDs. The default for each color is 0.#
|
||||
|
||||
|
||||
##########################
|
||||
# LED Effects Animations #
|
||||
##########################
|
||||
|
||||
##################
|
||||
## logo effects ##
|
||||
##################
|
||||
|
||||
[led_effect sb_logo_busy]
|
||||
autostart: false
|
||||
frame_rate: 24
|
||||
leds:
|
||||
neopixel:sb_leds (2,1,3,4,5,6,7,8)
|
||||
layers:
|
||||
breathing 3 1 top (1,0,0)
|
||||
|
||||
[led_effect sb_logo_cleaning]
|
||||
autostart: false
|
||||
frame_rate: 24
|
||||
leds:
|
||||
neopixel:sb_leds (2,1,3,4,5,6,7,8)
|
||||
layers:
|
||||
breathing 3 1 top (0.0, 0.02, 0.5)
|
||||
|
||||
[led_effect sb_logo_calibrating_z]
|
||||
autostart: false
|
||||
frame_rate: 24
|
||||
leds:
|
||||
neopixel:sb_leds (2,1,3,4,5,6,7,8)
|
||||
layers:
|
||||
breathing 3 1 top (0.0, 0.0, 0.35)
|
||||
|
||||
[led_effect sb_logo_heating]
|
||||
leds:
|
||||
neopixel:sb_leds (2,3,7,8,6,1)
|
||||
autostart: false
|
||||
frame_rate: 24
|
||||
layers:
|
||||
comet 0.3 0 add (1, 0.18, 0)
|
||||
|
||||
[led_effect sb_logo_cooling]
|
||||
leds:
|
||||
neopixel:sb_leds (2,3,7,8,6,1)
|
||||
autostart: false
|
||||
frame_rate: 24
|
||||
layers:
|
||||
comet 0.3 0 add (0, 0, 1)
|
||||
|
||||
[led_effect sb_logo_homing]
|
||||
autostart: false
|
||||
frame_rate: 24
|
||||
leds:
|
||||
neopixel:sb_leds (2,1,3,4,5,6,7,8)
|
||||
layers:
|
||||
breathing 3 1 top (0.0, 0.6, 0.2)
|
||||
|
||||
[led_effect sb_logo_leveling]
|
||||
autostart: false
|
||||
frame_rate: 24
|
||||
leds:
|
||||
neopixel:sb_leds (2,1,3,4,5,6,7,8)
|
||||
layers:
|
||||
breathing 3 1 top (0.5, 0.1, 0.4)
|
||||
|
||||
[led_effect sb_logo_meshing]
|
||||
autostart: false
|
||||
frame_rate: 24
|
||||
leds:
|
||||
neopixel:sb_leds (2,1,3,4,5,6,7,8)
|
||||
layers:
|
||||
breathing 3 1 top (0.2, 1.0, 0.0)
|
||||
|
||||
[led_effect sb_logo_printing]
|
||||
autostart: false
|
||||
frame_rate: 24
|
||||
leds:
|
||||
neopixel:sb_leds (2,1,3,4,5,6,7,8)
|
||||
layers:
|
||||
gradient 0.3 1 add (0.3, 0.0, 0.0),(0.3, 0.3, 0.0),(0.3, 0.1, 0.0)
|
||||
|
||||
[led_effect sb_logo_standby]
|
||||
autostart: false
|
||||
frame_rate: 24
|
||||
leds:
|
||||
neopixel:sb_leds (2,1,3,4,5,6,7,8)
|
||||
layers:
|
||||
breathing 3 1 top (0.01, 0.01, 0.01)
|
||||
|
||||
[led_effect sb_logo_part_ready]
|
||||
autostart: false
|
||||
frame_rate: 24
|
||||
leds:
|
||||
neopixel:sb_leds (2,1,3,4,5,6,7,8)
|
||||
layers:
|
||||
breathing 3 1 top (0.0, 1.0, 0.0)
|
||||
|
||||
####################
|
||||
## nozzle effects ##
|
||||
####################
|
||||
|
||||
[led_effect sb_nozzle_heating]
|
||||
autostart: false
|
||||
frame_rate: 24
|
||||
leds:
|
||||
neopixel:sb_leds (9,10)
|
||||
layers:
|
||||
breathing 3 1 top (1.0, 0.18, 0.0, 0.0)
|
||||
|
||||
[led_effect sb_nozzle_cooling]
|
||||
autostart: false
|
||||
frame_rate: 24
|
||||
leds:
|
||||
neopixel:sb_leds (9,10)
|
||||
layers:
|
||||
breathing 3 1 top (0.0, 0.0, 1.0, 0.1)
|
||||
|
||||
[led_effect sb_nozzle_standby]
|
||||
autostart: false
|
||||
frame_rate: 24
|
||||
leds:
|
||||
neopixel:sb_leds (9,10)
|
||||
layers:
|
||||
breathing 3 1 top (0.6, 0.0, 0.0, 0.0)
|
||||
|
||||
[led_effect sb_nozzle_part_ready]
|
||||
autostart: false
|
||||
frame_rate: 24
|
||||
leds:
|
||||
neopixel:sb_leds (9,10)
|
||||
layers:
|
||||
breathing 3 1 top (0.6, 1.0, 0.0, 0.1)
|
||||
|
||||
|
||||
#####################
|
||||
## all led effects ##
|
||||
#####################
|
||||
|
||||
[led_effect sb_critical_error]
|
||||
leds:
|
||||
neopixel:sb_leds
|
||||
layers:
|
||||
strobe 1 1.5 add (1.0, 1.0, 1.0)
|
||||
breathing 2 0 difference (0.95, 0.0, 0.0)
|
||||
static 1 0 top (1.0, 0.0, 0.0)
|
||||
autostart: false
|
||||
frame_rate: 24
|
||||
run_on_error: true
|
||||
|
||||
|
||||
[led_effect rainbow]
|
||||
leds:
|
||||
neopixel:sb_leds
|
||||
autostart: true
|
||||
frame_rate: 24
|
||||
layers:
|
||||
gradient 0.3 1 add (0.3, 0.0, 0.0),(0.0, 0.3, 0.0),(0.0, 0.0, 0.3)
|
||||
|
||||
|
||||
#######################
|
||||
# LED Effects Statics #
|
||||
#######################
|
||||
|
||||
[led_effect set_nozzle_leds]
|
||||
leds:
|
||||
neopixel:sb_leds (9,10)
|
||||
#neopixel:caselight
|
||||
autostart: false
|
||||
frame_rate: 24
|
||||
layers:
|
||||
# static 0 0 top (0.0, 0.0, 0.0, 1.0)
|
||||
static 0 0 top (1.0, 1.0, 1.0, 1.0)
|
||||
|
||||
[led_effect set_logo_leds]
|
||||
leds:
|
||||
neopixel:sb_leds (2,1,3,4,5,6,7,8)
|
||||
#neopixel:caselight
|
||||
autostart: false
|
||||
frame_rate: 24
|
||||
layers:
|
||||
static 0 0 top (1.0, 1.0, 1.0)
|
||||
|
||||
##############
|
||||
# The Macros #
|
||||
##############
|
||||
|
||||
[gcode_macro _set_logo_leds_off]
|
||||
gcode:
|
||||
SET_LED_EFFECT EFFECT=set_logo_leds STOP=1
|
||||
|
||||
[gcode_macro _set_logo_leds_on]
|
||||
gcode:
|
||||
SET_LED_EFFECT EFFECT=set_logo_leds
|
||||
|
||||
[gcode_macro _set_nozzle_leds_on]
|
||||
gcode:
|
||||
SET_LED_EFFECT EFFECT=set_nozzle_leds
|
||||
|
||||
[gcode_macro _set_nozzle_leds_off]
|
||||
gcode:
|
||||
SET_LED_EFFECT EFFECT=set_nozzle_leds STOP=1
|
||||
|
||||
# The _status_* macros only stop the toolhead effects (neopixel:sb_leds), so
|
||||
# the Box Turtle logo (rainbow_turtle on neopixel:bt_logo) keeps running during
|
||||
# prints. _status_off still stops everything; _status_ready starts the logo again.
|
||||
[gcode_macro _status_off]
|
||||
gcode:
|
||||
STOP_LED_EFFECTS
|
||||
|
||||
[gcode_macro _status_ready]
|
||||
gcode:
|
||||
STOP_LED_EFFECTS LEDS="neopixel:sb_leds"
|
||||
SET_LED_EFFECT EFFECT=rainbow
|
||||
SET_LED_EFFECT EFFECT=rainbow_turtle
|
||||
|
||||
[gcode_macro _status_part_ready]
|
||||
gcode:
|
||||
STOP_LED_EFFECTS LEDS="neopixel:sb_leds"
|
||||
SET_LED_EFFECT EFFECT=sb_nozzle_part_ready
|
||||
SET_LED_EFFECT EFFECT=sb_logo_part_ready
|
||||
|
||||
[gcode_macro _status_busy]
|
||||
gcode:
|
||||
STOP_LED_EFFECTS LEDS="neopixel:sb_leds"
|
||||
SET_LED_EFFECT EFFECT=sb_logo_busy
|
||||
_set_nozzle_leds_on
|
||||
|
||||
[gcode_macro _status_heating]
|
||||
gcode:
|
||||
STOP_LED_EFFECTS LEDS="neopixel:sb_leds"
|
||||
SET_LED_EFFECT EFFECT=sb_logo_heating
|
||||
SET_LED_EFFECT EFFECT=sb_nozzle_heating
|
||||
|
||||
[gcode_macro _status_cooling]
|
||||
gcode:
|
||||
STOP_LED_EFFECTS LEDS="neopixel:sb_leds"
|
||||
SET_LED_EFFECT EFFECT=sb_logo_cooling
|
||||
SET_LED_EFFECT EFFECT=sb_nozzle_cooling
|
||||
|
||||
|
||||
[gcode_macro _status_leveling]
|
||||
gcode:
|
||||
STOP_LED_EFFECTS LEDS="neopixel:sb_leds"
|
||||
SET_LED_EFFECT EFFECT=sb_logo_leveling
|
||||
_set_nozzle_leds_on
|
||||
|
||||
[gcode_macro _status_homing]
|
||||
gcode:
|
||||
STOP_LED_EFFECTS LEDS="neopixel:sb_leds"
|
||||
SET_LED_EFFECT EFFECT=sb_logo_homing
|
||||
_set_nozzle_leds_on
|
||||
|
||||
[gcode_macro _status_cleaning]
|
||||
gcode:
|
||||
STOP_LED_EFFECTS LEDS="neopixel:sb_leds"
|
||||
SET_LED_EFFECT EFFECT=sb_logo_cleaning
|
||||
_set_nozzle_leds_on
|
||||
|
||||
[gcode_macro _status_meshing]
|
||||
gcode:
|
||||
STOP_LED_EFFECTS LEDS="neopixel:sb_leds"
|
||||
SET_LED_EFFECT EFFECT=sb_logo_meshing
|
||||
_set_nozzle_leds_on
|
||||
|
||||
[gcode_macro _status_calibrating_z]
|
||||
gcode:
|
||||
STOP_LED_EFFECTS LEDS="neopixel:sb_leds"
|
||||
SET_LED_EFFECT EFFECT=sb_logo_calibrating_z
|
||||
_set_nozzle_leds_on
|
||||
|
||||
[gcode_macro _status_printing]
|
||||
gcode:
|
||||
STOP_LED_EFFECTS LEDS="neopixel:sb_leds"
|
||||
SET_LED_EFFECT EFFECT=sb_logo_printing
|
||||
_set_nozzle_leds_on
|
||||
Reference in new issue
Block a user