diff --git a/macros.cfg b/macros.cfg index 4f9bcb8..d1540ef 100644 --- a/macros.cfg +++ b/macros.cfg @@ -62,4 +62,25 @@ gcode: [gcode_macro BED_TRAM] gcode: - SCREWS_TILT_CALCULATE \ No newline at end of file + SCREWS_TILT_CALCULATE + +[gcode_macro Encender_Led] +description: Turn WLED strip on using optional preset and resets led colors +gcode: + {% set strip = params.STRIP|default("leds")|string %} + {% set preset = params.PRESET|default(1)|int %} + + {action_call_remote_method("set_wled_state", + strip=strip, + state=True, + preset=preset)} +[gcode_macro Apagar_Led] +description: Turn WLED strip on using optional preset and resets led colors +gcode: + {% set strip = params.STRIP|default("leds")|string %} + {% set preset = params.PRESET|default(2)|int %} + + {action_call_remote_method("set_wled_state", + strip=strip, + state=True, + preset=preset)}