kitesurfer1404 / WS2812FX

WS2812 FX Library for Arduino and ESP8266
MIT License
1.58k stars 343 forks source link

Make a segment not in order? #320

Closed eliteAnorak closed 1 year ago

eliteAnorak commented 1 year ago

I rarely make posts here on GitHub, so apologies if this isn't the right place for this question.

I'm trying to make a segment of LEDs, but because of how it was laid out in my project I have to make the segment (6,7,2,8,9) instead of (6,7,8,9,10). Is this possible using this library?

Thanks!

moose4lord commented 1 year ago

This issue of managing LEDs that are not wired sequentially comes up every once in a while. It is discussed at the beginning of issue #284. The solution is to create a virtual LED strip (to run the effect), and a physical strip along with a customShow() function (to map virtual LEDs to physical LEDs). Please see issue #284 for an example sketch.