Hello All, Just a quick question.

Hello All, Just a quick question. While running the Palette code below


I was curious if it was possible to change the direction that the LEDs “Trail” They go down the strip from bottom to top… I would like them to go from top to bottom… Moving the strip isn’t an option its pretty fixed in place :slight_smile: Thanks in advance for any help you can provide!

@Erin_Jordan : I am not sure what you define as top or bottom of the strip. Replace the FillLEDsFromPaletteColors() function in your code with the following function that has worked for me to reverse the direction that the pixels are moving for this sketch:

void FillLEDsFromPaletteColors( uint8_t colorIndex)
uint8_t brightness = 255;

for( int i = NUM_LEDS-1; i >=0; i–) {
leds[i] = ColorFromPalette( currentPalette, colorIndex, brightness, currentBlending);
colorIndex += 3;

Thanks @Ken_White I will give this a go when I get home. Yea I didn’t really think about the WS2812B Strips not having a top or bottom so I guess that was a bad way to reference it. My apologies.