-
Notifications
You must be signed in to change notification settings - Fork 0
/
wled.cfg
85 lines (72 loc) · 2 KB
/
wled.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
[gcode_macro WLED_ON]
description: Turn WLED strip on using optional preset and resets led colors
gcode:
{% set strip = params.STRIP|default('orebot')|string %}
{% set preset = params.PRESET|default(-1)|int %}
{action_call_remote_method("set_wled_state",
strip=strip,
state=True,
preset=preset)}
[gcode_macro WLED_CONTROL]
description: Control effect values and brightness
gcode:
{% set strip = params.STRIP|default('orebot')|string %}
{% set brightness = params.BRIGHTNESS|default(-1)|int %}
{% set intensity = params.INTENSITY|default(-1)|int %}
{% set speed = params.SPEED|default(-1)|int %}
{action_call_remote_method("set_wled_state",
strip=strip,
brightness=brightness,
intensity=intensity,
speed=speed)}
[gcode_macro WLED_OFF]
description: Turn WLED strip off
gcode:
{% set strip = params.STRIP|default('orebot')|string %}
{action_call_remote_method("set_wled_state",
strip=strip,
state=False)}
[gcode_macro SET_WLED]
description: SET_LED like functionality for WLED, applies to all active segments
gcode:
{% set strip = params.STRIP|default('orebot')|string %}
{% 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 index = params.INDEX|default(-1)|int %}
{% set transmit = params.TRANSMIT|default(1)|int %}
{action_call_remote_method("set_wled",
strip=strip,
red=red, green=green, blue=blue, white=white,
index=index, transmit=transmit)}
[gcode_macro WLED_INITIAL]
gcode:
WLED_ON PRESET=1
[gcode_macro WLED_CALIBRATING]
gcode:
WLED_ON PRESET=10
[gcode_macro WLED_HEATING]
gcode:
WLED_ON PRESET=7
[gcode_macro WLED_PRINTING]
gcode:
WLED_ON PRESET=2
[gcode_macro WLED_PAUSED]
gcode:
WLED_ON PRESET=3
[gcode_macro WLED_COMPLETE]
gcode:
WLED_ON PRESET=5
[gcode_macro WLED_HOMING]
gcode:
WLED_ON PRESET=11
[gcode_macro WLED_CANCELLED]
gcode:
WLED_ON PRESET=6
[gcode_macro WLED_FAULT]
gcode:
WLED_ON PRESET=4
[gcode_macro WLED_COOLING]
gcode:
WLED_ON PRESET=8