klipper-led_effect icon indicating copy to clipboard operation
klipper-led_effect copied to clipboard

addressing different LEDs in a string

Open ArketypeDesign opened this issue 3 years ago • 2 comments

I am trying to combine different effects on a stealthburner toolhead (3 LEDs...Logo is led 1, toolhead lights are 2,3)

not sure this syntax is right and would love some guidance.

The code below only activates the logo #1. The toolhead leds (2,3) seem to be ignored.

[led_effect status-ready] leds: neopixel:sb_leds (1) layers: static 1 0 bottom (0.5, 0.0, 0.5) autostart: true frame_rate: 24

neopixel:sb_leds (2,3)

layers: breathing 8 0 add (0.4, 0.4, 0.4) static 1 0 bottom (0.1, 0.1, 0.1) autostart: true frame_rate: 24

ArketypeDesign avatar Sep 07 '22 00:09 ArketypeDesign

Try this

[neopixel sb_leds]
pin: "your pin"
chain_count:3
color_order:GRB
initial_GREEN: 0
initial_RED: 0
initial_BLUE: 0

[led_effect status-ready]
leds:
neopixel:sb_leds (1)
layers:
static 1 0 bottom (0.5, 0.0, 0.5)
autostart: true
frame_rate: 24

[led_effect status-ready1]
leds:
neopixel:sb_leds (2-3)
layers:
breathing 8 0 add (0.4, 0.4, 0.4)
static 1 0 bottom (0.1, 0.1, 0.1)
autostart: true
frame_rate: 24

[gcode_macro LEDS_OFF]
gcode:
   STOP_LED_EFFECTS
   SET_LED LED=sb_leds RED=0 GREEN=0 BLUE=0

burntcoinpurse avatar Sep 08 '22 01:09 burntcoinpurse

@ArketypeDesign Can this be closed?

julianschill avatar Sep 21 '22 00:09 julianschill

I will close this because of inactivity.

julianschill avatar Oct 23 '22 17:10 julianschill