-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLEDS.cfg
530 lines (442 loc) · 12.1 KB
/
LEDS.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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
#####################################################################
# LED Control
#####################################################################
## Chamber Lighting - HE2 Connector (Optional)
#[output_pin caselight]
#pin: PB10
#pwm:true
#shutdown_value: 0
#value:1
#cycle_time: 0.01
#####################################################################
#### LED LIGHTS #####
#####################################################################
# https://www.teamfdm.com/forums/topic/496-extra-neopixel-led-string-next-to-stealthburner-leds-from-octopus-11-board/
#[neopixel sb_leds]
#pin: PB0
#chain_count: 4
# The number of Neopixel chips that are "daisy chained" to the
# provided pin. The default is 1 (which indicates only a single
# Neopixel is connected to the pin).
#color_order: GRBW
# Set the pixel order required by the LED hardware. Options are GRB,
# RGB, GRBW, or RGBW. The default is GRB.
#initial_RED: 0.0
#initial_GREEN: 0.0
#initial_BLUE: 0.0
#initial_WHITE: 0.0
# Sets the initial LED color of the Neopixel. Each value should be
# between 0.0 and 1.0. The WHITE option is only available on RGBW
# LEDs. The default for each color is 0.
## RGB
[neopixel toolhead]
pin: sb2040:gpio12
chain_count: 3
color_order: GRBW
initial_RED: 0.0
initial_GREEN: 0.0
initial_BLUE: 0.0
initial_WHITE: 1.0
[neopixel chamber]
pin: pico:gpio2
chain_count:56 #18+21+18
# The number of Neopixel chips that are "daisy chained" to the
# provided pin. The default is 1 (which indicates only a single
# Neopixel is connected to the pin).
color_order: GRB
# Set the pixel order required by the LED hardware. Options are GRB,
# RGB, GRBW, or RGBW. The default is GRB.
initial_RED: 0
initial_GREEN: 1
initial_BLUE: 0
# Sets the initial LED color of the Neopixel. Each value should be
# between 0.0 and 1.0. The WHITE option is only available on RGBW
# LEDs. The default for each color is 0.
#[gcode_macro SB_LED_ON]
#gcode:
# SET_LED LED=neo RED=1 GREEN=1 BLUE=1
[led_effect critical_error]
leds:
neopixel:chamber
layers:
strobe 1 1.5 add (1.0, 1.0, 1.0)
breathing 2 0 difference (0.95, 0.0, 0.0)
static 1 0 top (1.0, 0.0, 0.0)
autostart: false
frame_rate: 24
run_on_error: true
#### Effects Definitions ###
## Toolhead
[led_effect logo_busy]
leds:
neopixel:toolhead (1)
autostart: false
frame_rate: 1
layers:
static 0 0 add (0.4,0.0,0.0,0.0)
[led_effect logo_calibrating_z]
leds:
neopixel:toolhead (1)
autostart: false
frame_rate: 1
layers:
static 0 0 add (0.8,0.0,0.35,0.0)
[led_effect logo_cleaning]
leds:
neopixel:toolhead (1)
autostart: false
frame_rate: 1
layers:
static 0 0 add (0.0,0.02,0.5,0.0)
#critical error, see below
[led_effect logo_heating]
autostart: false
frame_rate: 24
leds:
neopixel:toolhead (1)
heater: extruder
layers:
# layer_name Effect Rate Cutoff Blending Color
heater 20 0 add (0,0,1),(1,0,0),(0,1,0)
[led_effect logo_homing]
leds:
neopixel:toolhead (1)
autostart: false
frame_rate: 1
layers:
static 0 0 add (0.0,0.6,0.2,0.0)
#input-shaper
[led_effect logo_leveling]
leds:
neopixel:toolhead (1)
autostart: false
frame_rate: 1
layers:
static 0 0 add (0.5,0.1,0.4,0.0)
#loading?
[led_effect logo_meshing]
leds:
neopixel:toolhead (1)
autostart: false
frame_rate: 1
layers:
static 0 0 add (0.2,1.0,0.0,0.0)
[led_effect logo_party_time]
leds:
neopixel:toolhead (1)
autostart: false
frame_rate: 24
layers:
strobe 1 1.5 add (1.0,0.0,0.0,0.0),(1.0,1.0,0.0,0.0),(0.0,1.0,0.0,0.0),(0.0,1.0,1.0,0.0),(0.0,0.0,1.0,0.0),(1.0,0.0,1.0,0.0)
[led_effect logo_printing]
leds:
neopixel:toolhead (1)
autostart: false
frame_rate: 1
layers:
static 0 0 add (0.0,0.0,1.0,0.0)
[led_effect logo_standby]
leds:
neopixel:toolhead (1)
autostart: true
frame_rate: 24
layers:
breathing 12 1 add (0,0,1.0,0.0)
static 0 0 add (0,0,0.05,0.0)
[led_effect nozzle_heating]
leds:
neopixel:toolhead (2,3)
autostart: false
frame_rate: 24
heater: extruder
layers:
# layer_name Effect Rate Cutoff Blending Color
heater 20 0 add (0,0,1),(1,0,0),(0,1,0)
[led_effect nozzle_off]
leds:
neopixel:toolhead (2,3)
autostart: false
frame_rate: 1
layers:
static 0 0 add (0.0,0.0,0.0,0.0)
[led_effect nozzle_on]
leds:
neopixel:toolhead (2,3)
autostart: false
frame_rate: 1
layers:
static 0 0 add (0.8,0.8,0.8,1.0)
[led_effect nozzle_party_time]
leds:
neopixel:toolhead (2,3)
autostart: false
frame_rate: 24
layers:
strobe 1 1.5 add (1.0,0.0,0.0,0.0),(1.0,1.0,0.0,0.0),(0.0,1.0,0.0,0.0),(0.0,1.0,1.0,0.0),(0.0,0.0,1.0,0.0),(1.0,0.0,1.0,0.0)
[led_effect nozzle_standby]
leds:
neopixel:toolhead (2,3)
autostart: true
frame_rate: 24
layers:
breathing 12 1 add (0,0,1.0,0.0)
static 0 0 add (0,0,0.05,0.0)
# Caselights
#busy ??
[led_effect case_calibrating_z_left]
leds:
neopixel:chamber
autostart: false
frame_rate: 24
layers:
comet 0.3 0.5 add (0.8,0.0,0.35),(0.4,0.0,0.7)
[led_effect case_calibrating_z_right]
leds:
neopixel:chamber
autostart: false
frame_rate: 24
layers:
comet -0.3 0.5 add (0.8,0.0,0.35),(0.4,0.0,0.7)
[led_effect case_cleaning]
leds:
neopixel:chamber
autostart: false
frame_rate: 24
layers:
twinkle 4 0.05 add (0.0,0.02,0.5)
twinkle 2 0.1 add (0.0,0.06,0.2)
[led_effect case_heating]
leds:
neopixel:chamber
autostart: false
frame_rate: 24
heater: heater_bed
layers:
# layer_name Effect Rate Cutoff Blending Color
heater 20 0 add (0,0,1),(1,0,0),(0,1,0)
[led_effect case_heating_left]
leds:
neopixel:chamber (1-18)
autostart: false
frame_rate: 10
heater: heater_bed
layers:
heaterfire 10 0 top (0,0,0.1),(0.6,0.36,0)
[led_effect case_heating_right]
leds:
#neopixel:chamber (36,35,34,33,32,31,30,29,28,27,26,25,24,23,22,21,20,19)
neopixel:chamber (56,55,54,53,52,51,50,49,48,47,46,45,44,43,42,41,40)
autostart: false
frame_rate: 10
heater: heater_bed
layers:
heaterfire 10 0 top (0,0,0.1),(0.6,0.36,0)
[led_effect case_homing]
leds:
neopixel:chamber
autostart: false
frame_rate: 10
layers:
breathing 12 1 add (0.0,0.3,0.1),(0.0, 0.1, 0.03)
chase 0.5 0.75 add (0.0,0.6,0.2),(0.0, 0.1, 0.2),(0.0,0.05,0.2)
[led_effect case_input_shaper]
leds:
neopixel:chamber
autostart: false
frame_rate: 1
layers:
static 0 0 top (0.25,0.0,0.5)
[led_effect case_leveling]
leds:
neopixel:chamber
autostart: false
frame_rate: 15
layers:
comet -0.75 1 top (0.5,0.1,0.4),(0.3,0.1,0.6),(0.1,0.1,0.8)
[led_effect case_loading_left]
leds:
neopixel:chamber (1-18)
autostart: false
frame_rate: 15
layers:
chase 0.5 0.5 add (0.0,0.7,0.0),(0.0,0.35,0.05),(0.0,0.12,0.1)
[led_effect case_loading_right]
leds:
neopixel:chamber (38-56)
autostart: false
frame_rate: 15
layers:
chase -0.5 0.5 add (0.0,0.7,0.0),(0.0,0.35,0.05),(0.0,0.12,0.1)
[led_effect case_meshing]
leds:
neopixel:chamber
autostart: false
frame_rate: 15
layers:
chase 0.5 0.5 add (0.2,1.0,0.0),(0.1,0.5,0),(0.05,0.25,0)
chase -0.25 0.5 add (0.2,1.0,0.0),(0.1,0.5,0),(0.05,0.25,0)
[led_effect case_off]
leds:
neopixel:chamber
autostart: false
frame_rate: 1
layers:
static 0 0 add (0.0,0.0,0.0,0.0)
[led_effect case_party_time]
leds:
neopixel:chamber
autostart: false
frame_rate: 15
layers:
strobe 1 1.5 add (1.0, 0.0, 0.0),(1.0,1.0,0.0),(0.0, 1.0, 0.0),(0.0,1.0,1.0),(0.0, 0.0, 1.0),(1.0,0.0,1.0)
twinkle 5 0.05 add (1.0, 0.0, 0.0),(1.0,1.0,0.0),(0.0, 1.0, 0.0),(0.0,1.0,1.0),(0.0, 0.0, 1.0),(1.0,0.0,1.0)
[led_effect case_printing]
leds:
neopixel:chamber
autostart: false
frame_rate: 2
layers:
# layer_name EffectRate Cutoff Blending Color
progress 2 2 add (0.8,-0.2,-0.2),(-0.2,0.8,-0.2)
static 0 1 top (0.2,0.2,0.2)
[led_effect case_standby]
leds:
neopixel:chamber
autostart: true
frame_rate: 24
layers:
breathing 12 1 add (0,0,0.3)
static 0 0 add (0,0,0.1)
[led_effect case_unloading_left]
leds:
neopixel:chamber (1-18)
autostart: false
frame_rate: 15
layers:
chase -0.5 0.5 add (0.7,0.0,0.0),(0.35,0.0,0.0),(0.13,0.05,0.0)
[led_effect case_unloading_right]
leds:
neopixel:chamber (38-56)
autostart: false
frame_rate: 15
layers:
chase 0.5 0.5 add (0.7,0.0,0.0),(0.35,0.0,0.0),(0.13,0.05,0.0)
# Special Definitions
[led_effect critical_error]
leds:
#neopixel:sb_leds
neopixel:chamber
autostart: false
frame_rate: 24
run_on_error: true
layers:
strobe 1 1.5 add (1.0, 1.0,1.0)
breathing 2 0 difference (0.95,0.0,0.0)
static 1 0 top (1.0,0.0,0.0)
### LED Activation Macros ###
[gcode_macro led_busy]
gcode:
STOP_LED_EFFECTS ;cancel all others
SET_LED_EFFECT EFFECT=logo_busy
SET_LED_EFFECT EFFECT=nozzle_on
SET_LED_EFFECT EFFECT=case_standby
[gcode_macro led_calibrating_z]
gcode:
STOP_LED_EFFECTS ;cancel all others
SET_LED_EFFECT EFFECT=logo_calibrating_z
SET_LED_EFFECT EFFECT=nozzle_on
SET_LED_EFFECT EFFECT=case_calibrating_z_left
SET_LED_EFFECT EFFECT=case_calibrating_z_right
[gcode_macro led_cleaning]
gcode:
STOP_LED_EFFECTS ;cancel all others
SET_LED_EFFECT EFFECT=logo_cleaning
SET_LED_EFFECT EFFECT=nozzle_on
SET_LED_EFFECT EFFECT=case_cleaning
# Critical error
[gcode_macro led_blinkenlights]
gcode:
STOP_LED_EFFECTS ;cancel all others
SET_LED_EFFECT EFFECT=critical_error ; This activates all LEDs
[gcode_macro led_heating]
gcode:
STOP_LED_EFFECTS ;cancel all others
SET_LED_EFFECT EFFECT=logo_heating
SET_LED_EFFECT EFFECT=nozzle_heating
#SET_LED_EFFECT EFFECT=case_heating_left
#SET_LED_EFFECT EFFECT=case_heating_right
SET_LED_EFFECT EFFECT=case_heating
[gcode_macro led_toolhead_heating]
gcode:
STOP_LED_EFFECTS ;cancel all others
SET_LED_EFFECT EFFECT=logo_cleaning STOP=1
SET_LED_EFFECT EFFECT=logo_busy STOP=1
SET_LED_EFFECT EFFECT=logo_standby STOP=1
SET_LED_EFFECT EFFECT=nozzle_on STOP=1
SET_LED_EFFECT EFFECT=nozzle_standby STOP=1
SET_LED_EFFECT EFFECT=logo_heating
SET_LED_EFFECT EFFECT=nozzle_heating
[gcode_macro led_homing]
gcode:
STOP_LED_EFFECTS ;cancel all others
SET_LED_EFFECT EFFECT=logo_homing
SET_LED_EFFECT EFFECT=nozzle_on
SET_LED_EFFECT EFFECT=case_homing
[gcode_macro led_input_shaper]
gcode:
STOP_LED_EFFECTS ;cancel all others
SET_LED_EFFECT EFFECT=logo_busy
SET_LED_EFFECT EFFECT=nozzle_on
SET_LED_EFFECT EFFECT=case_input_shaper
[gcode_macro led_leveling]
gcode:
STOP_LED_EFFECTS ;cancel all others
SET_LED_EFFECT EFFECT=logo_leveling
SET_LED_EFFECT EFFECT=nozzle_on
SET_LED_EFFECT EFFECT=case_leveling
[gcode_macro led_loading]
gcode:
STOP_LED_EFFECTS ;cancel all others
SET_LED_EFFECT EFFECT=logo_busy
SET_LED_EFFECT EFFECT=nozzle_on
SET_LED_EFFECT EFFECT=case_loading_left
SET_LED_EFFECT EFFECT=case_loading_right
[gcode_macro led_meshing]
gcode:
STOP_LED_EFFECTS ;cancel all others
SET_LED_EFFECT EFFECT=logo_meshing
SET_LED_EFFECT EFFECT=nozzle_on
SET_LED_EFFECT EFFECT=case_meshing
[gcode_macro led_case_off]
gcode:
STOP_LED_EFFECTS
SET_LED_EFFECT EFFECT=case_off
[gcode_macro led_off]
gcode:
STOP_LED_EFFECTS
[gcode_macro led_party_time]
gcode:
STOP_LED_EFFECTS ;cancel all others
SET_LED_EFFECT EFFECT=logo_party_time
SET_LED_EFFECT EFFECT=nozzle_party_time
SET_LED_EFFECT EFFECT=case_party_time
[gcode_macro led_printing]
gcode:
STOP_LED_EFFECTS ;cancel all others
SET_LED_EFFECT EFFECT=logo_printing
SET_LED_EFFECT EFFECT=nozzle_on
SET_LED_EFFECT EFFECT=case_printing
G4 P1000
[gcode_macro led_standby]
gcode:
STOP_LED_EFFECTS ;cancel all others
SET_LED_EFFECT EFFECT=logo_standby
SET_LED_EFFECT EFFECT=nozzle_standby
SET_LED_EFFECT EFFECT=case_standby
[gcode_macro led_unloading]
gcode:
STOP_LED_EFFECTS ;cancel all others
SET_LED_EFFECT EFFECT=logo_busy
SET_LED_EFFECT EFFECT=nozzle_on
SET_LED_EFFECT EFFECT=case_unloading_left
SET_LED_EFFECT EFFECT=case_unloading_right