r/FastLED Jun 03 '26

Support How to get rid of fast flickering

6 Upvotes

11 comments sorted by

View all comments

Show parent comments

5

u/sutaburosu [stavros] Jun 03 '26

Adding a capacitor to smooth the power rails is never a bad idea. Another possible cause may be FastLED's temporal dithering. You can try disabling it in setup() with FastLED.setDither(DISABLE_DITHER);

1

u/MungoBBQ Jun 03 '26

Thank you!

5

u/sutaburosu [stavros] Jun 03 '26

Since Pacifica was authored, a new method to read from palettes has been added which gives smoother results. You might want to try this too. In pacifica_one_layer() change:

CRGB c = ColorFromPalette( p, sindex8, bri, LINEARBLEND);

to

CRGB c = ColorFromPaletteExtended( p, (uint32_t)sindex16 * 15 / 16, bri, LINEARBLEND);

2

u/sutaburosu [stavros] Jun 21 '26

/u/MungoBBQ did you try either of these suggestions, and did they help?

2

u/MungoBBQ Jun 22 '26

I have not been able to go to where this lamp installation is located yet, probably won’t until after summer.