# Neopixel on fly-sb2040

**URL:** https://klipper.discourse.group/t/neopixel-on-fly-sb2040/8469
**Category:** General Discussion
**Created:** [May 18, 2023, 7:05am UTC](https://klipper.discourse.group/t/neopixel-on-fly-sb2040/8469 "2023-05-18T07:05:50Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![PowderedJoy](https://avatars.discourse-cdn.com/v4/letter/p/3da27b/32.png) [@PowderedJoy](https://klipper.discourse.group/u/PowderedJoy)
#### Post date: [May 18, 2023, 7:05am UTC](https://klipper.discourse.group/t/neopixel-on-fly-sb2040/8469/1 "2023-05-18T07:05:50Z")

</div>

### Basic Information:

Printer Model: Voron 2.4  
 MCU / Printerboard: fly-sb2040  
 `klippy.log`

I have 3 LED chain controlled by fly-sb2040 on the Afterburner tool head. If I transmit my command to the 3 individual LEDs with MACRO, they are set to different colors, but after a few seconds, the whole chain is set to the color of the first led. Retransmitting macro makes it stay. If I If I set leds from the console, they stay.  
example of my macros:

```auto
gcode:
    M220 S100
    SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY=5.0
    SET_VELOCITY_LIMIT VELOCITY=600
    SET_VELOCITY_LIMIT ACCEL=4000
    SET_VELOCITY_LIMIT ACCEL_TO_DECEL=2000
    SET_LED LED=svicilka RED=0 GREEN=1 BLUE=0 WHITE=0 INDEX=1 TRANSMIT=0
    SET_LED LED=svicilka RED=1 GREEN=1 BLUE=0 WHITE=1 INDEX=2 TRANSMIT=0
    SET_LED LED=svicilka RED=1 GREEN=1 BLUE=0 WHITE=1 INDEX=3 TRANSMIT=1

[gcode_macro BERSERKER]
gcode:
    M220 S150
    SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY=10.0
    SET_VELOCITY_LIMIT VELOCITY=600
    SET_VELOCITY_LIMIT ACCEL=10000
    SET_VELOCITY_LIMIT ACCEL_TO_DECEL=5000
    SET_LED LED=svicilka RED=1 GREEN=0 BLUE=0 WHITE=0 INDEX=1 TRANSMIT=0
    SET_LED LED=svicilka RED=1 GREEN=1 BLUE=0 WHITE=1 INDEX=2 TRANSMIT=0
    SET_LED LED=svicilka RED=1 GREEN=1 BLUE=0 WHITE=1 INDEX=3 TRANSMIT=1

```

---

<div class="post-metadata">

### Author: ![EddyMI3D](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/eddymi3d/32/1981_2.png) [@EddyMI3D](https://klipper.discourse.group/u/EddyMI3D)
#### Post date: [February 13, 2025, 7:45am UTC](https://klipper.discourse.group/t/neopixel-on-fly-sb2040/8469/2 "2025-02-13T07:45:07Z")

</div>


