Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decent implementation of Klipper_led_effects and rainbow barf lets #412

Merged
merged 84 commits into from
Dec 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
c67fa94
Turn on filter only if it was used during printing. (#380)
tehniemer Dec 13, 2023
843a08c
added parameters to park (#391)
Surion79 Dec 13, 2023
bbd8e0f
M8P v2.0 SPI fix (#389)
Surion79 Dec 13, 2023
cba4647
Add per material filament sensor management (#381)
tehniemer Dec 15, 2023
f8b817a
Remove _TIP_SHAPING from End/cancel print macros (#357)
tehniemer Dec 15, 2023
a8f516d
Klipper SET_PRINT_STATS_INFO compatibility (#392)
Surion79 Dec 15, 2023
1793847
Fix error with turning on filter only if it was used during printing.…
tehniemer Dec 19, 2023
e1a6cba
fix missing variable to cancel_print (#408)
tehniemer Dec 19, 2023
09c40f3
filament sensor status checks universal (#411)
tehniemer Dec 20, 2023
a5e5599
Fysetc Catalyst Config
Surion79 Dec 2, 2023
853d68f
added respond on idle_timeout
Surion79 Dec 7, 2023
34a084a
sherpa mini config (#385)
Surion79 Dec 8, 2023
f83e127
switch moonraker update management to dev channel (#390)
Benoitone Dec 15, 2023
0899845
Update orbiter2.0.cfg (#405)
EricZimmerman Dec 18, 2023
95f2522
Added barf-rainbow leds
Dec 18, 2023
f0b0b03
led effects added
Dec 19, 2023
07461cd
Added led effects for the allowed printer states
Dec 19, 2023
3747c9a
Integrated led effects and rainbow barf with existing status_leds.cfg
Dec 19, 2023
d0c7460
Fixed syntax errors
Dec 19, 2023
c754acf
Changed github repo to mine for local testing
claudioguareschi Dec 19, 2023
ef7dc0b
fixed path
claudioguareschi Dec 19, 2023
ed0eeba
fixed github repo to mine for local testing
claudioguareschi Dec 19, 2023
5dd0445
Fixed syntax error
claudioguareschi Dec 19, 2023
c610163
Fixing effects
claudioguareschi Dec 19, 2023
17e916d
Changes SET_LED_EFFECT from stop to replace with fade
claudioguareschi Dec 19, 2023
f6fb67f
added some chatty message to STATUS_LED macro
claudioguareschi Dec 19, 2023
254bd14
fixed standby effect
claudioguareschi Dec 19, 2023
bbdba08
QGL seems to finish before it is actually done
claudioguareschi Dec 19, 2023
29f3be1
Moved led setting fxs from tilting to gql and z-tilt
claudioguareschi Dec 19, 2023
f2ccf4a
QGL still returning too soon, lets comment ready state
claudioguareschi Dec 19, 2023
0086ca2
comment reaty on qgl
claudioguareschi Dec 19, 2023
38e2e34
testing qgl
claudioguareschi Dec 19, 2023
71013a6
QGL macro should be fixed
claudioguareschi Dec 19, 2023
856ecbf
Ret colors to ready after startup sequence
claudioguareschi Dec 19, 2023
c7bd812
Fixing bed mesh status led
claudioguareschi Dec 19, 2023
40181b4
Fixing bed mesh
claudioguareschi Dec 19, 2023
41fd9e8
fixed extruder heating
claudioguareschi Dec 19, 2023
04138eb
fixed temp override path
claudioguareschi Dec 19, 2023
4a9a9e0
fixed syntax
claudioguareschi Dec 19, 2023
af3ab94
fixed syntax
claudioguareschi Dec 19, 2023
31f7004
Fixed Set heater temperature
claudioguareschi Dec 19, 2023
0b78bf6
M109 reverted to original
claudioguareschi Dec 19, 2023
878f731
Tuning effects
claudioguareschi Dec 19, 2023
62fb470
testing different effects
claudioguareschi Dec 19, 2023
9604b04
fixed effect
claudioguareschi Dec 19, 2023
1935cf7
ready effect
claudioguareschi Dec 19, 2023
3067feb
ready effect
claudioguareschi Dec 19, 2023
1d64963
ready effect
claudioguareschi Dec 19, 2023
da28b6b
ready effect
claudioguareschi Dec 19, 2023
6fa0b3a
ready effect
claudioguareschi Dec 19, 2023
c7a901c
ready effect
claudioguareschi Dec 19, 2023
9f4b967
ready effect
claudioguareschi Dec 19, 2023
d291dc2
ready effect
claudioguareschi Dec 19, 2023
ad236e2
ready effect
claudioguareschi Dec 19, 2023
ed325ff
ready effect
claudioguareschi Dec 19, 2023
9a04da8
Refactored effect location and eliminate redundant files
Dec 19, 2023
eb269a9
Changed some effects
Dec 20, 2023
ad29a82
busy effect
Dec 20, 2023
40e7884
More case effects
Dec 20, 2023
5c946a9
fixed syntax
Dec 20, 2023
46130f4
fixed effect
Dec 20, 2023
5b3cc42
fixed effect
Dec 20, 2023
91671db
Caselights effects done
Dec 20, 2023
6e83fcf
Caselights effects done
Dec 20, 2023
ec6b152
Restored github repository to frix-x
Dec 20, 2023
77ba2d6
Fyxed a typo
Dec 20, 2023
4205d9d
For review
Dec 20, 2023
ab7ef38
Update tilting.cfg to remove comments
claudioguareschi Dec 20, 2023
2004adf
Update and rename status_leds_rb_effects.cfg to status_leds_rainbow_b…
claudioguareschi Dec 20, 2023
d82a32f
Changes requested
Dec 20, 2023
e0bd654
changed github repo to my fork for testing
Dec 20, 2023
42a2995
Fixed effect on startup process end
Dec 20, 2023
f225627
Added done printing
Dec 20, 2023
680bfdc
Printing effect
Dec 20, 2023
8a72c50
effects effects...
Dec 20, 2023
6b6ccdd
done printing strobe effect
Dec 20, 2023
f269212
testing effects
Dec 20, 2023
9b20178
syntaz
Dec 20, 2023
3b13e85
fixed brain fart
Dec 20, 2023
9ca61ab
fixed effect
Dec 20, 2023
19980ff
fixed strobe timing
Dec 20, 2023
057a2b7
fixed effects
Dec 20, 2023
5db7c1b
fixed typo on barf
claudioguareschi Dec 21, 2023
252d44e
Merge branch 'leds-rework' into main
Frix-x Dec 21, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
183 changes: 183 additions & 0 deletions config/hardware/lights/neopixel_caselight_effects.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,183 @@
# Neopixel leds used as general printer lights
[gcode_macro _USER_VARIABLES]
variable_status_leds_caselight_enabled = True
variable_status_leds_caselight_led_name: "caselight_effects"
gcode:

# Also include directly the leds control macros from here
[include ../../../macros/hardware_functions/status_leds.cfg]

[neopixel caselight]
pin: LIGHT_NEOPIXEL
# The pin connected to the neopixel. This parameter must be
# provided.
chain_count: 31
# 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 (using a string
# containing the letters R, G, B, W with W optional). 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.#


#########################################################
# Define led effects for the different printer states
#########################################################
## Ready State
[led_effect cl_standby]
leds:
neopixel:caselight
autostart: false
frame_rate: 24
layers:
breathing 20.00 1 add (1.00,1.00,1.00)
static 0 0 top (0.07,0.37,0.57)

## Busy State
[led_effect cl_busy]
leds:
neopixel:caselight
autostart: false
frame_rate: 24
layers:
breathing 10 1 add (1.00,1.00,1.00)
static 0 0 top (1.00,0,0)

## Heating State
[led_effect cl_heating]
leds:
neopixel:caselight
autostart: false
frame_rate: 24
layers:
breathing 10 1 top (1.00,0.00,0.00)

## Leveling State
[led_effect cl_leveling]
leds:
neopixel:caselight
autostart: false
frame_rate: 24
layers:
breathing 10 1 add (1.00,1.00,1.00)
static 0 0 top (0.5,0.1,0.4)

## Homing State
[led_effect cl_homing]
leds:
neopixel:caselight
autostart: false
frame_rate: 24
layers:
breathing 10 1 add (1.00,1.00,1.00)
static 0 0 top (0.0, 0.6, 0.2)

## Cleaning State
[led_effect cl_cleaning]
leds:
neopixel:caselight
autostart: false
frame_rate: 24
layers:
breathing 10 1 add (1.00,1.00,1.00)
static 0 0 top (0.0, 0.02, 0.5)

## Meshing State
[led_effect cl_meshing]
leds:
neopixel:caselight
autostart: false
frame_rate: 24
layers:
breathing 10 1 add (1.00,1.00,1.00)
static 0 0 top (0.2, 1.0, 0.0)

## Calibrating Z State
[led_effect cl_calibrating_z]
leds:
neopixel:caselight
autostart: false
frame_rate: 24
layers:
breathing 10 1 add (1.00,1.00,1.00)
static 0 0 top (0.0, 0.0, 0.35)

## Printing State
[led_effect cl_printing]
leds:
neopixel:caselight
autostart: false
frame_rate: 24
layers:
breathing 120 1 add (1.00,1.00,1.00)
static 0 0 top (0.0, 0.0, 0.3), (0.0, 0.3, 0.0), (0.3, 0.0, 0.0)

## Printing Done State
[led_effect cl_done_printing]
leds:
neopixel:caselight
autostart: false
frame_rate: 24
layers:
strobe 0.20 0.60 subtract (1.00,0.00,1.00)
static 1.00 1.00 top (1.00,1.00,1.00)

## Error State
[led_effect cl_error]
leds:
neopixel:caselight
autostart: false
frame_rate: 24
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)

## On State
[led_effect cl_on]
leds:
neopixel:caselight
autostart: false
frame_rate: 24
layers:
static 0 0 top (1.0, 1.0, 1.0)

## Off State
[led_effect cl_off]
leds:
neopixel:caselight (1)
autostart: false
frame_rate: 24
layers:
static 0 0 top (0.0, 0.0, 0.0)

## Printer startup effect
[led_effect cl_startup]
leds:
neopixel:caselight
autostart: true
frame_rate: 24
layers:
gradient 0.3 1 add (1.0, 0.0, 0.0),(0.0, 1.0, 0.0),(0.0, 0.0, 1.0)

## Critical error effect
[led_effect critical_error]
leds:
neopixel:caselight
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


1 change: 0 additions & 1 deletion config/hardware/lights/status_leds.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ gcode:
# Also include directly the leds control macros from here
[include ../../../macros/hardware_functions/status_leds.cfg]


[neopixel status_leds]
pin: STATUS_NEOPIXEL
# The pin connected to the neopixel. This parameter must be provided.
Expand Down
Loading