Skip to content

Commit 5d16b1c

Browse files
authoredNov 15, 2022
Merge pull request #102 from julianschill/develop
Release v0.0.9
2 parents 6071b12 + 499fc86 commit 5d16b1c

12 files changed

+2187
-335
lines changed
 

‎.github/workflows/release.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,16 @@ jobs:
3737
- os: macos-latest
3838
TARGET: macos
3939
CMD_BUILD: >
40-
pyinstaller -F -w -n ledeffect-simulator -p .. app.py &&
40+
pyinstaller -F -w -n ledeffect-simulator-macos -p .. app.py &&
4141
cd dist/ &&
42-
zip -r9 ledeffect-simulator ledeffect-simulator.app
43-
OUT_FILE_NAME: ledeffect-simulator.zip
42+
zip -r9 ledeffect-simulator-macos ledeffect-simulator-macos.app
43+
OUT_FILE_NAME: ledeffect-simulator-macos.zip
4444
ASSET_MIME: application/zip
4545
POETRY_FOLDER: ~/.local
4646
- os: windows-latest
4747
TARGET: windows
48-
CMD_BUILD: pyinstaller -F -w -n ledeffect-simulator -p .. app.py
49-
OUT_FILE_NAME: ledeffect-simulator.exe
48+
CMD_BUILD: pyinstaller -F -w -n ledeffect-simulator-win -p .. app.py
49+
OUT_FILE_NAME: ledeffect-simulator-win.exe
5050
ASSET_MIME: application/vnd.microsoft.portable-executable
5151
POETRY_FOLDER: C:\Users\runneradmin\.local
5252
steps:

‎docs/LED_Effect.md

+37-9
Original file line numberDiff line numberDiff line change
@@ -142,17 +142,20 @@ frame_rate:
142142
Sets the frame rate in frames per second for the effect
143143

144144
run_on_error:
145-
Keeps the last color on a shutdown. (Currently not working)
145+
(Needs patched MCU firmware. Currently not supported.)
146146

147147
heater:
148-
Specifies the heater to use for a heater effect. For a temperature fan put
149-
temperature_fan and use quotes: `heater: "temperature_fan myfan"`
148+
Specifies the heater to use for a heater effect. Use `extruder` for the
149+
extruder and `heater_bed` for the bed. For temperature fans or sensors add the
150+
type and use quotes.
151+
Example: `heater: "temperature_fan myfan"`
150152

151153
analog_pin:
152154
Specifies the pin to use for effects using an analog signal.
153155

154156
stepper:
155-
Specifies the stepper motor to use for the stepper effect.
157+
Specifies the stepper motor to use for the stepper effect. Possible values are:
158+
`x`, `y` and `z`. Example: `stepper: x`
156159

157160
## Defining LEDs
158161

@@ -170,8 +173,9 @@ leds:
170173

171174
Additionally, one may decide to only have certain LEDs displaying the
172175
effect. This is accomplished by providing the index of the LEDs to be
173-
used after the strip name. The index can be a list or a range. If the
174-
indices are omitted, the entire strip is used.
176+
used after the strip name. The index can be a list or a range. The range can
177+
also be inversed to invert the effect. If the indices are omitted, the entire
178+
strip is used.
175179

176180
As well, if for some reason you needed to, the same strip can be used
177181
twice in an effect with different emitters being specified.
@@ -180,7 +184,7 @@ twice in an effect with different emitters being specified.
180184
leds:
181185
neopixel:tool_lights
182186
neopixel:panel_ring (1-7)
183-
neopixel:panel_ring (9-16)
187+
neopixel:panel_ring (16-9)
184188
dotstar:bed_lights (1,3,5)
185189
```
186190

@@ -255,7 +259,6 @@ Colors fade in and out. If a palette of multiple colors is provided, it will
255259
cycle through those colors in the order they are specified in the palette.
256260
The effect rate parameter controls how long it takes to "breathe" one time.
257261

258-
259262
#### Blink
260263
Effect Rate: 1 Duration of a complete cycle
261264
Cutoff: 0.5 Ratio of the time the LEDs are on (between 0 and 1)
@@ -293,6 +296,14 @@ length of the gradient in relation to the chain length. The bigger the value,
293296
the shorter the gradient (e.g. the value 2 means 2 gradients on the length of
294297
the chain)
295298

299+
#### Pattern
300+
Effect Rate: 1 Time between pattern shifts
301+
Cutoff: 1 How far the pattern gets shifted
302+
Palette: The pattern to be shifted
303+
The palette is applied as a recurring pattern on the chain and shifted along the
304+
chain. The effect rate determines the time between the shifts in seconds, the
305+
cutoff determines the amount of LED positions the pattern gets shifted.
306+
296307
#### Comet
297308
Effect Rate: 1 How fast the comet moves, negative values change direction
298309
Cutoff: 1 Length of tail (somewhat arbitrary)
@@ -323,6 +334,14 @@ the colors will follow this pattern in reverse until the temperature falls
323334
below the minimum temperature specified in the config. This can be used to
324335
indicate the hotend or bed is in a safe state to touch.
325336

337+
#### Temperature
338+
Effect Rate: 20 Cold Temperature
339+
Cutoff: 80 Hot Temperature
340+
Palette: Color values to blend from Cold to Hot
341+
The temperature of the configured heater determines the color in a gradient over
342+
the palette. When only one color is defined in the palette, the brightness of
343+
that color is defined by the temperature.
344+
326345
#### Fire
327346
Effect Rate: 45 Probability of "sparking"
328347
Cutoff: 40 Rate of "cooling"
@@ -370,6 +389,15 @@ of the stepper similar to the GET_POSITION gcode command. It will not be realtim
370389
A negative value in effect rate will fill the entire strip leading up to the stepper
371390
position, a negative value in cutoff will fill the entire strip after the stepper position.
372391

392+
#### StepperColor
393+
Effect Rate: 1 Scaling of position
394+
Cutoff: 0 Offset of position
395+
Palette: Color values to blend
396+
The color of the LEDs are determined by the position of the stepper motor. The
397+
position is determined between 0 and 100 and is multiplied with the effect rate
398+
and the cutoff is added as offset. This then determines the value in the
399+
palette, that is calculated as a gradient over the specified color values.
400+
373401
#### Progress
374402
Effect Rate: 4 Number of trailing LEDs
375403
Cutoff: 4 Number of leading LEDs
@@ -481,7 +509,7 @@ of increasing contrast.
481509
In the event of critical error, all LED strips breath red in unison to
482510
provide a visible indicator of an error condition with the printer. This
483511
effect is disabled during normal operation and only starts when the MCU
484-
enters a shutdown state.
512+
enters a shutdown state (currently not supported).
485513

486514
```
487515
[led_effect critical_error]

0 commit comments

Comments
 (0)