Compare commits

...

36 commits

Author SHA1 Message Date
4460ffcfff octoeverywhere.conf modified - 21/08/25 - 05:34:25 2025-08-21 05:34:32 +01:00
cf60831633 octoeverywhere.conf modified - 21/08/25 - 05:23:03 - No new changes pushed 2025-08-21 05:34:24 +01:00
394d2a3e2d New Backup on boot - 21/08/25 - 05:22:51 2025-08-21 05:34:24 +01:00
d56a01442c printer.cfg modified - 21/08/25 - 05:32:20 2025-08-21 05:32:27 +01:00
45bf6b2754 printer.cfg modified - 21/08/25 - 05:31:25 2025-08-21 05:31:31 +01:00
4ef28d9bbc moonraker.conf modified - 21/08/25 - 05:24:38 - No new changes pushed 2025-08-21 05:24:45 +01:00
e942c2204d moonraker.conf modified - 21/08/25 - 05:24:29 - No new changes pushed 2025-08-21 05:24:37 +01:00
43e771b728 moonraker.conf modified - 21/08/25 - 05:24:21 - No new changes pushed 2025-08-21 05:24:28 +01:00
134acd6d78 moonraker.conf modified - 21/08/25 - 05:24:13 - No new changes pushed 2025-08-21 05:24:20 +01:00
4ed796ea8d moonraker.conf modified - 21/08/25 - 05:24:05 - No new changes pushed 2025-08-21 05:24:12 +01:00
6d46b9e5fb moonraker.conf modified - 21/08/25 - 05:23:57 - No new changes pushed 2025-08-21 05:24:04 +01:00
fdf45a6e2c moonraker.conf modified - 21/08/25 - 05:23:49 2025-08-21 05:23:56 +01:00
6a12b7c151 stealthburner_leds.cfg modified - 21/08/25 - 05:11:23 2025-08-21 05:11:30 +01:00
4c8a12aabe stealthburner_leds.cfg modified - 21/08/25 - 05:09:38 2025-08-21 05:09:45 +01:00
46cd7deaa2 stealthburner_leds.cfg modified - 21/08/25 - 05:03:13 2025-08-21 05:03:19 +01:00
05eb41b5d5 octoeverywhere.conf modified - 21/08/25 - 04:54:57 - No new changes pushed 2025-08-21 04:55:04 +01:00
e34c960431 octoeverywhere.conf modified - 21/08/25 - 04:54:49 - No new changes pushed 2025-08-21 04:54:56 +01:00
c289d27540 printer.cfg modified - 21/08/25 - 04:53:51 2025-08-21 04:53:58 +01:00
24a74a98af printer.cfg modified - 21/08/25 - 04:52:45 2025-08-21 04:52:51 +01:00
85e728736e printer.cfg modified - 21/08/25 - 04:47:45 2025-08-21 04:47:51 +01:00
15c2921752 logs-20231001-101341.zip modified - 21/08/25 - 04:45:38 - No new changes pushed 2025-08-21 04:45:45 +01:00
6ebf9431fc logs-20230900-110551.zip modified - 21/08/25 - 04:45:28 - No new changes pushed 2025-08-21 04:45:35 +01:00
2327aa7acd logs-20230705-102356.zip modified - 21/08/25 - 04:45:19 - No new changes pushed 2025-08-21 04:45:27 +01:00
daef732b1e logs-20230702-210423.zip modified - 21/08/25 - 04:45:12 - No new changes pushed 2025-08-21 04:45:18 +01:00
6229023f4c printer.cfg modified - 21/08/25 - 04:43:01 2025-08-21 04:43:07 +01:00
61d7467047 printer.cfg modified - 21/08/25 - 04:42:29 2025-08-21 04:42:36 +01:00
b140d2912a printer.cfg modified - 21/08/25 - 04:33:16 2025-08-21 04:33:23 +01:00
a28a8b9a38 printer.cfg modified - 21/08/25 - 04:23:07 2025-08-21 04:23:14 +01:00
adfb450d34 printer.cfg modified - 21/08/25 - 04:22:13 2025-08-21 04:22:20 +01:00
0ddad03eeb printer.cfg modified - 21/08/25 - 04:21:49 2025-08-21 04:21:56 +01:00
51e3b6b400 nitehawk36.cfg modified - 21/08/25 - 04:21:15 - No new changes pushed 2025-08-21 04:21:22 +01:00
4c0d65e6f4 printer.cfg modified - 21/08/25 - 04:20:46 2025-08-21 04:20:52 +01:00
2d6c100b9c printer.cfg modified - 21/08/25 - 04:18:37 2025-08-21 04:18:43 +01:00
4500682dcf octoeverywhere.conf modified - 21/08/25 - 04:15:19 2025-08-21 04:15:25 +01:00
e42cacedff octoeverywhere.conf modified - 21/08/25 - 02:40:22 - No new changes pushed 2025-08-21 04:15:18 +01:00
898c00e4e4 New Backup on boot - 21/08/25 - 02:40:10 2025-08-21 04:15:17 +01:00
3 changed files with 287 additions and 147 deletions

View file

@ -107,3 +107,11 @@ path: ~/klipper-backup
origin: https://github.com/Staubgeborener/klipper-backup.git origin: https://github.com/Staubgeborener/klipper-backup.git
managed_services: moonraker managed_services: moonraker
primary_branch: main primary_branch: main
[update_manager led_effect]
type: git_repo
path: ~/klipper-led_effect
origin: https://github.com/julianschill/klipper-led_effect.git
is_system_service: False

View file

@ -24,12 +24,17 @@
## Obtain definition by "ls -l /dev/serial/by-id/" then unplug to verify ## Obtain definition by "ls -l /dev/serial/by-id/" then unplug to verify
##-------------------------------------------------------------------- ##--------------------------------------------------------------------
serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_41004C000A51313133353932-if00 serial: /dev/serial/by-id/usb-Klipper_stm32f446xx_41004C000A51313133353932-if00
#/dev/serial/by-id/usb-Klipper_stm32f446xx_41004C000A51313133353932-if00 restart_method: command
##--------------------------------------------------------------------
[mcu nhk]
## Obtain definition by "ls -l /dev/serial/by-id/" then unplug to verify
##--------------------------------------------------------------------
serial: /dev/serial/by-id/usb-Klipper_rp2040_4E363334320D3925-if00
restart_method: command restart_method: command
##-------------------------------------------------------------------- ##--------------------------------------------------------------------
[include mainsail.cfg] [include mainsail.cfg]
[include nitehawk36.cfg]
[include stealthburner_leds.cfg] [include stealthburner_leds.cfg]
[include case_lights.cfg] [include case_lights.cfg]
[include print_handling.cfg] [include print_handling.cfg]
@ -71,7 +76,7 @@ enable_pin: !PF14
rotation_distance: 40 rotation_distance: 40
microsteps: 32 microsteps: 32
full_steps_per_rotation:200 #set to 400 for 0.9 degree stepper full_steps_per_rotation:200 #set to 400 for 0.9 degree stepper
endstop_pin: PG6 endstop_pin: nhk:gpio13
position_min: 0 position_min: 0
##-------------------------------------------------------------------- ##--------------------------------------------------------------------
@ -110,7 +115,7 @@ enable_pin: !PF15
rotation_distance: 40 rotation_distance: 40
microsteps: 32 microsteps: 32
full_steps_per_rotation:200 #set to 400 for 0.9 degree stepper full_steps_per_rotation:200 #set to 400 for 0.9 degree stepper
endstop_pin: PG9 endstop_pin: PG6
position_min: 0 position_min: 0
##-------------------------------------------------------------------- ##--------------------------------------------------------------------
@ -237,11 +242,11 @@ microsteps: 32
full_steps_per_rotation: 200 #200 for 1.8 degree, 400 for 0.9 degree full_steps_per_rotation: 200 #200 for 1.8 degree, 400 for 0.9 degree
nozzle_diameter: 0.400 nozzle_diameter: 0.400
filament_diameter: 1.75 filament_diameter: 1.75
heater_pin: PA2 heater_pin: nhk:gpio9 #-----------------------------------------------------------------------------------------------------------------------------------------Heater Issue
## Check what thermistor type you have. See https://www.klipper3d.org/Config_Reference.html#common-thermistors for common thermistor types. ## Check what thermistor type you have. See https://www.klipper3d.org/Config_Reference.html#common-thermistors for common thermistor types.
## Use "Generic 3950" for NTC 100k 3950 thermistors ## Use "Generic 3950" for NTC 100k 3950 thermistors
sensor_type: ATC Semitec 104NT-4-R025H42G sensor_type: ATC Semitec 104NT-4-R025H42G #-----------------------------------------------------------------------------------------------------------------------------------------Thermistor Issue
sensor_pin: PF4 sensor_pin: nhk:gpio29
min_temp: 10 min_temp: 10
max_temp: 280 max_temp: 280
max_power: 1.0 max_power: 1.0
@ -299,7 +304,7 @@ max_temp: 130
## For the PROBE port. Will not work with Diode. May need pull-up resistor from signal to 24V. ## For the PROBE port. Will not work with Diode. May need pull-up resistor from signal to 24V.
#pin: ~!PB7 #pin: ~!PB7
## For the DIAG_7 port. NEEDS BAT85 DIODE! Change to !PG15 if probe is NO. ## For the DIAG_7 port. NEEDS BAT85 DIODE! Change to !PG15 if probe is NO.
pin: PG15 pin: nhk:gpio10
## For Octopus Pro Probe port; NPN and PNP proximity switch types can be set by jumper ## For Octopus Pro Probe port; NPN and PNP proximity switch types can be set by jumper
#pin: ~!PC5 #pin: ~!PC5
@ -339,16 +344,55 @@ samples_tolerance_retries: 3
[fan] [fan]
## Print Cooling Fan - FAN0 ## Print Cooling Fan - FAN0
pin: PA8 pin: PA8 # Output pin controlling the fan. This parameter must be provided.
kick_start_time: 0.5 max_power: 0.8
## Depending on your fan, you may need to increase this value # This should be set to 0.8 on most motherboards to give full range of control to your slicer.
## if your fan will not start. Can change cycle_time (increase) # Anything above 80% duty cycle will be full power on this particular brushless driver.
## if your fan is not able to slow down effectively # To fine-tune the max_power parameter for your particular motherboard, set max_power to 1.0, go into the Klipper dashboard, and increase fan speed 1% at a time until the actual fan speed stops increasing as you increase the fan speed. Divide the fan speed at this point by 100 and enter it into the max_power parameter.
off_below: 0.10 # This parameter defines the maximum power (expressed as a value from 0.0 to 1.0) that the pin may be set to.
# The value 1.0 allows the pin to be set fully enabled for extended periods, while a value of 0.5 would allow the pin to be enabled for no more than half the time.
# This setting may be used to limit the total power output (over extended periods) to the fan.
# If this value is less than 1.0, then fan speed requests will be scaled between zero and max_power (for example, if max_power is 0.9 and a fan speed of 80% is requested, then the fan power will be set to 72%).
shutdown_speed: 0
# The desired fan speed (expressed as a value from 0.0 to 1.0) if
# The microcontroller software enters an error state.
# The default is 0.
cycle_time: 0.010 #0.005 Example config value
# The amount of time (in seconds) for each PWM power cycle to the fan.
# It is recommended this be 10 milliseconds or greater when using software-based PWM.
# The default is 0.010 seconds.
hardware_pwm: False
# Enable this to use hardware PWM instead of software PWM.
# Most fans do not work well with hardware PWM, so it is not recommended to enable this unless there is an electrical requirement to switch at very high speeds.
# When using hardware PWM, the actual cycle time is constrained by the implementation and may be significantly different than the requested cycle_time.
# The default is False.
kick_start_time: 0.100
# Time (in seconds) to run the fan at full speed when either first enabling or increasing it by more than 50% (helps get the fan spinning).
# The default is 0.100 seconds.
off_below: 0.1
# The blower will not spin with the included brushless driver when the duty cycle is below 8%. When scaled with Max_power at 0.8, the off_below parameter should be set to 0.1.
# To calibrate this setting, gradually lower the fan speed to determine the lowest input speed that reliably drives the fan without stalls.
# Set off_below to the duty cycle corresponding to this value (for example, 8% -> 0.08/Max_power -> 0.08/0.8 -> 0.1) or slightly higher.
# This parameter is the minimum input speed that will power the fan (expressed as a value from 0.0 to 1.0).
# When a speed lower than off_below is requested, the fan will instead be turned off.
# This setting may be used to prevent fan stalls and to ensure effective kick starts.
# To calibrate this setting, start with off_below set to 0.0 and the fan spinning.
# Gradually lower the fan speed to determine the lowest input speed that reliably drives the fan without stalls.
# Set off_below to the duty cycle corresponding to this value (for example, 12% -> 0.12) or slightly higher.
#Tachometer_pin:
# Tachometer input pin for monitoring fan speed. A pullup is generally required.
# This parameter is optional.
#Tachometer_ppr: 1
# When tachometer_pin is specified, this is the number of pulses per revolution of the tachometer signal.
#Tachometer_poll_interval: 0.0005
# When tachometer_pin is specified, this is the polling period of the tachometer pin, in seconds.
# The default is 0.0015, which is fast enough for fans below 10,000 RPM at 2 PPR.
# This must be smaller than 30/(tachometer_ppr*rpm), with some margin, where rpm is the
# maximum speed (in RPM) of the fan.
[heater_fan hotend_fan] [heater_fan hotend_fan]
## Hotend Fan - FAN1 ## Hotend Fan - FAN1
pin: PE5 pin: nhk:gpio5
max_power: 1.0 max_power: 1.0
kick_start_time: 0.5 kick_start_time: 0.5
heater: extruder heater: extruder

View file

@ -10,7 +10,7 @@
# How to use all this stuff: # How to use all this stuff:
# #
# 1. Copy this .cfg file into your Klipper config directory and then add [include stealthburner_leds.cfg] # 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 to register the LEDs and macros with Klipper. # 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 # 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. # as well as the color order.
# #
@ -45,21 +45,21 @@
# #
# 5. Feel free to change colors of each macro, create new ones if you have a need to. The macros provided below # 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 # 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 # 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 # # END INSTRUCTRUCTIONS #
##################################### #####################################
[neopixel sb_leds] [neopixel sb_leds]
pin: PB0 pin: nhk:gpio7
# The pin connected to the neopixel. This parameter must be provided. # The pin connected to the neopixel. This parameter must be provided.
chain_count: 3 chain_count: 10
# The number of Neopixel chips that are "daisy chained" to the # The number of Neopixel chips that are "daisy chained" to the
# provided pin. The default is 1 (which indicates only a single # provided pin. The default is 1 (which indicates only a single
# Neopixel is connected to the pin). # Neopixel is connected to the pin).
color_order: GRB color_order: GRB, GRB, GRB, GRB, GRB, GRB, GRB, GRB, GRBW, GRBW
# Set the pixel order required by the LED hardware. Options are GRB, # Set the pixel order required by the LED hardware. Options are GRB,
# RGB, GRBW, or RGBW. The default is GRB. # RGB, GRBW, or RGBW. The default is GRB.
initial_RED: 1.0 initial_RED: 1.0
@ -70,185 +70,273 @@ initial_WHITE: 0.0
# between 0.0 and 1.0. The WHITE option is only available on RGBW # between 0.0 and 1.0. The WHITE option is only available on RGBW
# LEDs. The default for each color is 0.# # LEDs. The default for each color is 0.#
# Most configuration for the macros can be done by modifying the variables in the _sb_vars macro
# at the start of this file.
########## ##########################
# MACROS # # LED Effects Animations #
########## ##########################
# The following status macros are available (these go inside of your macros): ##################
# ## logo effects ##
# STATUS_READY ##################
# STATUS_OFF
# STATUS_BUSY [led_effect sb_logo_busy]
# STATUS_HEATING autostart: false
# STATUS_LEVELING frame_rate: 24
# STATUS_HOMING leds:
# STATUS_CLEANING neopixel:sb_leds (1-8)
# STATUS_MESHING layers:
# STATUS_CALIBRATING_Z breathing 3 1 top (1,0,0)
#
# With additional macros for basic control: [led_effect sb_logo_cleaning]
# autostart: false
# SET_NOZZLE_LEDS_ON frame_rate: 24
# SET_LOGO_LEDS_OFF leds:
# SET_NOZZLE_LEDS_OFF neopixel:sb_leds (1-8)
# layers:
# Contributed by Voron discord users wile.e, Tetsunosuke, and etherwalker 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 (1-8)
layers:
breathing 3 1 top (0.0, 0.0, 0.35)
[led_effect sb_logo_heating]
leds:
neopixel:sb_leds (1,3,7,8,6,2)
autostart: false
frame_rate: 24
layers:
comet 0.3 0 add (1, 0.18, 0)
[led_effect sb_logo_cooling]
leds:
neopixel:sb_leds (1,3,7,8,6,2)
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 (1-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 (1-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 (1-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 (1-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 (1-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 (1-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)
[gcode_macro _sb_vars] #####################
# User settings for the StealthBurner status leds. You can change the status colors and led ## all led effects ##
# configurations for the logo and nozzle here. #####################
variable_colors: {
'logo': { # Colors for logo states [led_effect sb_critical_error]
'busy': {'r': 0.4, 'g': 0.0, 'b': 0.0, 'w': 0.0}, leds:
'cleaning': {'r': 0.0, 'g': 0.02, 'b': 0.5, 'w': 0.0}, neopixel:sb_leds
'calibrating_z': {'r': 0.8, 'g': 0., 'b': 0.35, 'w': 0.0}, layers:
'heating': {'r': 0.3, 'g': 0.18, 'b': 0.0, 'w': 0.0}, strobe 1 1.5 add (1.0, 1.0, 1.0)
'homing': {'r': 0.0, 'g': 0.6, 'b': 0.2, 'w': 0.0}, breathing 2 0 difference (0.95, 0.0, 0.0)
'leveling': {'r': 0.5, 'g': 0.1, 'b': 0.4, 'w': 0.0}, static 1 0 top (1.0, 0.0, 0.0)
'meshing': {'r': 0.2, 'g': 1.0, 'b': 0.0, 'w': 0.0}, autostart: false
'off': {'r': 0.0, 'g': 0.0, 'b': 0.0, 'w': 0.0}, frame_rate: 24
'printing': {'r': 1.0, 'g': 0.0, 'b': 0.0, 'w': 0.0}, run_on_error: true
'standby': {'r': 0.01, 'g': 0.01, 'b': 0.01, 'w': 0.1},
},
'nozzle': { # Colors for nozzle states
'heating': {'r': 0.8, 'g': 0.35, 'b': 0.0, 'w':0.0},
'off': {'r': 0.0, 'g': 0.0, 'b': 0.0, 'w': 0.0},
'on': {'r': 0.8, 'g': 0.8, 'b': 0.8, 'w':1.0},
'standby': {'r': 0.6, 'g': 0.0, 'b': 0.0, 'w':0.0},
},
'thermal': {
'hot': {'r': 1.0, 'g': 0.0, 'b': 0.0, 'w': 0.0},
'cold': {'r': 0.3, 'g': 0.0, 'b': 0.3, 'w': 0.0}
}
}
variable_logo_led_name: "sb_leds"
# The name of the addressable LED chain that contains the logo LED(s)
variable_logo_idx: "1"
# A comma-separated list of indexes LEDs in the logo
variable_nozzle_led_name: "sb_leds"
# The name of the addressable LED chain that contains the nozzle LED(s). This will
# typically be the same LED chain as the logo.
variable_nozzle_idx: "2,3"
# A comma-separated list of indexes of LEDs in the nozzle
gcode:
# This section is required. Do Not Delete.
[gcode_macro _set_sb_leds] [led_effect rainbow]
gcode: leds:
{% set red = params.RED|default(0)|float %} neopixel:sb_leds
{% set green = params.GREEN|default(0)|float %} autostart: true
{% set blue = params.BLUE|default(0)|float %} frame_rate: 24
{% set white = params.WHITE|default(0)|float %} layers:
{% set led = params.LED|string %} gradient 0.3 1 add (0.3, 0.0, 0.0),(0.0, 0.3, 0.0),(0.0, 0.0, 0.3)
{% set idx = (params.IDX|string).split(',') %}
{% set transmit_last = params.TRANSMIT|default(1) %}
{% for led_index in idx %}
{% set transmit=transmit_last if loop.last else 0 %}
set_led led={led} red={red} green={green} blue={blue} white={white} index={led_index} transmit={transmit}
{% endfor %}
[gcode_macro _set_sb_leds_by_name] #######################
gcode: # LED Effects Statics #
{% set leds_name = params.LEDS %} #######################
{% set color_name = params.COLOR %}
{% set color = printer["gcode_macro _sb_vars"].colors[leds_name][color_name] %}
{% set led = printer["gcode_macro _sb_vars"][leds_name + "_led_name"] %}
{% set idx = printer["gcode_macro _sb_vars"][leds_name + "_idx"] %}
{% set transmit = params.TRANSMIT|default(1) %}
_set_sb_leds led={led} red={color.r} green={color.g} blue={color.b} white={color.w} idx="{idx}" transmit={transmit} [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)
[gcode_macro _set_logo_leds] [led_effect set_logo_leds]
gcode: leds:
{% set red = params.RED|default(0)|float %} neopixel:sb_leds (1,2,3,4,5,6,7,8)
{% set green = params.GREEN|default(0)|float %} #neopixel:caselight
{% set blue = params.BLUE|default(0)|float %} autostart: false
{% set white = params.WHITE|default(0)|float %} frame_rate: 24
{% set led = printer["gcode_macro _sb_vars"].logo_led_name %} layers:
{% set idx = printer["gcode_macro _sb_vars"].logo_idx %} static 0 0 top (1.0, 1.0, 1.0)
{% set transmit=params.TRANSMIT|default(1) %}
_set_sb_leds led={led} red={red} green={green} blue={blue} white={white} idx="{idx}" transmit={transmit} ##############
# The Macros #
[gcode_macro _set_nozzle_leds] ##############
gcode:
{% set red = params.RED|default(0)|float %}
{% set green = params.GREEN|default(0)|float %}
{% set blue = params.BLUE|default(0)|float %}
{% set white = params.WHITE|default(0)|float %}
{% set led = printer["gcode_macro _sb_vars"].nozzle_led_name %}
{% set idx = printer["gcode_macro _sb_vars"].nozzle_idx %}
{% set transmit=params.TRANSMIT|default(1) %}
_set_sb_leds led={led} red={red} green={green} blue={blue} white={white} idx="{idx}" transmit={transmit}
[gcode_macro set_logo_leds_off] [gcode_macro set_logo_leds_off]
gcode: gcode:
{% set transmit=params.TRANSMIT|default(1) %} SET_LED_EFFECT EFFECT=set_logo_leds STOP=1
_set_logo_leds red=0 blue=0 green=0 white=0 transmit={transmit}
[gcode_macro set_logo_leds_on]
gcode:
SET_LED_EFFECT EFFECT=set_logo_leds
[gcode_macro set_nozzle_leds_on] [gcode_macro set_nozzle_leds_on]
gcode: gcode:
{% set transmit=params.TRANSMIT|default(1) %} SET_LED_EFFECT EFFECT=set_nozzle_leds
_set_sb_leds_by_name leds="nozzle" color="on" transmit={transmit}
[gcode_macro set_nozzle_leds_off] [gcode_macro set_nozzle_leds_off]
gcode: gcode:
{% set transmit=params.TRANSMIT|default(1) %} SET_LED_EFFECT EFFECT=set_nozzle_leds STOP=1
_set_sb_leds_by_name leds="nozzle" color="off" transmit={transmit}
[gcode_macro status_off] [gcode_macro status_off]
gcode: gcode:
set_logo_leds_off transmit=0 STOP_LED_EFFECTS
set_nozzle_leds_off
[gcode_macro status_ready] [gcode_macro status_ready]
gcode: gcode:
_set_sb_leds_by_name leds="logo" color="standby" transmit=0 STOP_LED_EFFECTS
_set_sb_leds_by_name leds="nozzle" color="standby" transmit=1 SET_LED_EFFECT EFFECT=rainbow
[gcode_macro status_part_ready]
gcode:
STOP_LED_EFFECTS
SET_LED_EFFECT EFFECT=sb_nozzle_part_ready
SET_LED_EFFECT EFFECT=sb_logo_part_ready
[gcode_macro status_busy] [gcode_macro status_busy]
gcode: gcode:
_set_sb_leds_by_name leds="logo" color="busy" transmit=0 STOP_LED_EFFECTS
SET_LED_EFFECT EFFECT=sb_logo_busy
set_nozzle_leds_on set_nozzle_leds_on
[gcode_macro status_heating] [gcode_macro status_heating]
gcode: gcode:
_set_sb_leds_by_name leds="logo" color="heating" transmit=0 STOP_LED_EFFECTS
_set_sb_leds_by_name leds="nozzle" color="heating" transmit=1 SET_LED_EFFECT EFFECT=sb_logo_heating
SET_LED_EFFECT EFFECT=sb_nozzle_heating
[gcode_macro status_cooling]
gcode:
STOP_LED_EFFECTS
SET_LED_EFFECT EFFECT=sb_logo_cooling
SET_LED_EFFECT EFFECT=sb_nozzle_cooling
[gcode_macro status_leveling] [gcode_macro status_leveling]
gcode: gcode:
_set_sb_leds_by_name leds="logo" color="leveling" transmit=0 STOP_LED_EFFECTS
SET_LED_EFFECT EFFECT=sb_logo_leveling
set_nozzle_leds_on set_nozzle_leds_on
[gcode_macro status_homing] [gcode_macro status_homing]
gcode: gcode:
_set_sb_leds_by_name leds="logo" color="homing" transmit=0 STOP_LED_EFFECTS
SET_LED_EFFECT EFFECT=sb_logo_homing
set_nozzle_leds_on set_nozzle_leds_on
[gcode_macro status_cleaning] [gcode_macro status_cleaning]
gcode: gcode:
_set_sb_leds_by_name leds="logo" color="cleaning" transmit=0 STOP_LED_EFFECTS
SET_LED_EFFECT EFFECT=sb_logo_cleaning
set_nozzle_leds_on set_nozzle_leds_on
[gcode_macro status_meshing] [gcode_macro status_meshing]
gcode: gcode:
_set_sb_leds_by_name leds="logo" color="meshing" transmit=0 STOP_LED_EFFECTS
SET_LED_EFFECT EFFECT=sb_logo_meshing
set_nozzle_leds_on set_nozzle_leds_on
[gcode_macro status_calibrating_z] [gcode_macro status_calibrating_z]
gcode: gcode:
_set_sb_leds_by_name leds="logo" color="calibrating_z" transmit=0 STOP_LED_EFFECTS
SET_LED_EFFECT EFFECT=sb_logo_calibrating_z
set_nozzle_leds_on set_nozzle_leds_on
[gcode_macro status_printing] [gcode_macro status_printing]
gcode: gcode:
_set_sb_leds_by_name leds="logo" color="printing" transmit=0 STOP_LED_EFFECTS
SET_LED_EFFECT EFFECT=sb_logo_printing
set_nozzle_leds_on set_nozzle_leds_on