Retool of macros to remove default_parameters
Due to Klipper deprecating this function
This commit is contained in:
parent
5d5d5d05b6
commit
3e9146faab
|
|
@ -17,7 +17,6 @@ initial_WHITE: 0.1
|
||||||
#####################################################################
|
#####################################################################
|
||||||
|
|
||||||
[gcode_macro _CASELIGHT]
|
[gcode_macro _CASELIGHT]
|
||||||
default_parameter_COLOR: 'white'
|
|
||||||
variable_colors: { 'red': (1.0, 0.0, 0.0, 0.0),
|
variable_colors: { 'red': (1.0, 0.0, 0.0, 0.0),
|
||||||
'orange': (1.0, 0.5, 0.0, 0.0),
|
'orange': (1.0, 0.5, 0.0, 0.0),
|
||||||
'yellow': (1.0, 1.0, 0.0, 0.0),
|
'yellow': (1.0, 1.0, 0.0, 0.0),
|
||||||
|
|
@ -39,7 +38,7 @@ variable_colors: { 'red': (1.0, 0.0, 0.0, 0.0),
|
||||||
variable_leds: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]
|
variable_leds: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]
|
||||||
gcode:
|
gcode:
|
||||||
# Grab the color values
|
# Grab the color values
|
||||||
{% set RGBW = colors.get(COLOR|lower, (0.0, 0.0, 0.0, 0.7)) %}
|
{% set RGBW = colors.get(COLOR|default('white')|lower, (0.0, 0.0, 0.0, 0.7)) %}
|
||||||
{% set R = RGBW[0] %}
|
{% set R = RGBW[0] %}
|
||||||
{% set G = RGBW[1] %}
|
{% set G = RGBW[1] %}
|
||||||
{% set B = RGBW[2] %}
|
{% set B = RGBW[2] %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue