Skip to content

Instantly share code, notes, and snippets.

@ChainsDD
Created September 22, 2022 02:46
Show Gist options
  • Save ChainsDD/7ce57fb2582bbd8bf3fa6dbc92697b98 to your computer and use it in GitHub Desktop.
Save ChainsDD/7ce57fb2582bbd8bf3fa6dbc92697b98 to your computer and use it in GitHub Desktop.
[led_effect case_off]
leds:
neopixel:my_neopixel (1-16)
layers:
static 0 0 top (0,0,0)
[led_effect bed_off]
leds:
neopixel:my_neopixel (17)
layers:
static 0 0 top (0,0,0)
[led_effect case_ready]
leds:
neopixel:my_neopixel (1-16)
layers:
static 0 0 top (0.5,0.5,0.5)
[led_effect bed_ready]
leds:
neopixel:my_neopixel (17)
layers:
breathing 5 0 top (0,0,0), (0.8,0,0.8)
[gcode_macro set_state]
gcode:
{% set state = params.STATE|default("off")|string %}
SET_LED_EFFECT EFFECT=case_{state}
SET_LED_EFFECT EFFECt=bed_{state}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment