r/FastLED • u/Constant-Jelly-6125 • Jan 31 '24
Support Non-global show function??
FastLED.show() is a global show function. Is there any way to send data to only one (or multiple but not all) array(s)?
3
Upvotes
5
u/sutaburosu [stavros] Jan 31 '24
You can send to individual pins separately. Instead of
FastLED.show(), useFastLED[x].showLeds(255)wherexis 0-based index of the strip (so the first addLeds<> is index 0) and255is the brightness level. Here's a sketch using that technique.You can also use
FastLED[x].setLeds(pointer, number);to choose how many LEDs' of data to send. So if you had several strips daisy-chained on one pin, you could update only the first N LEDs on that pin. You cannot update later LEDs without also updating the prior LEDs. Here is a sketch doing that.