Skip to content

Commit

Permalink
Update macros.cfg
Browse files Browse the repository at this point in the history
Added WLED control for Ilumination
  • Loading branch information
systemerror-codenotfound authored Mar 13, 2024
1 parent 43a6172 commit 98c3c6f
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion macros.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,25 @@ gcode:

[gcode_macro BED_TRAM]
gcode:
SCREWS_TILT_CALCULATE
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)}

0 comments on commit 98c3c6f

Please sign in to comment.