Has anyone taken the DemoReel100 sketch and modified it to drive 2 different (or more) strands of LED’s on 2 different pins? I don’t want them to be mirrored, I want to be able to pass a variable to the functions (sinelon, for example) which strip i want it run on. So I might have sinelon running on one strip while simultaneously running BPM on another.
Where would you be getting the variable from to determine which strip to display on? I think this would be pretty simple to do.
These two sketches by Mark show two different ways to pass a set of LEDs to a pattern drawing function:
ColorWavesWithPalettes passes a pointer to a regular LED array: ColorWavesWithPalettes - demo of using cpt-city palettes in FastLED code · GitHub
TwinkleFOX passes a CRGBArray:
I want to note the strip number in the name array. For example Sinelon(1) passed from the SimplePatternList gPatterns = { rainbow, rainbowWithGlitter, confetti, sinelon(1), juggle, bpm }; into the function and have the function send to the correct strip.
I’ve used multiple strips of different lengths before, for example:
#define NUM_STRIPS 6 // Total number of strips
#define NUM_LEDS0 11 // Specify length of each strip
#define NUM_LEDS1 13
#define NUM_LEDS2 17
#define NUM_LEDS3 20
#define NUM_LEDS4 21
#define NUM_LEDS5 23
#define TOTAL_LEDS 105
CRGB leds[NUM_STRIPS][NUM_LEDS0 + NUM_LEDS1 + NUM_LEDS2 + NUM_LEDS3 + NUM_LEDS4 + NUM_LEDS5];
But in this case, they have always run the same pattern at the same time.
With this new sketch I want to run 2 different strips of 2 different lengths running 2 different patterns at the same time. I mean I could copy/paste the sinelon function into sinelon_1 and have the strip number hard coded but there’s gotta be a way to pass that info instead.
I also downloaded the TwinkleFox sketch but got errors on compiling - the same ones noted in Github. Not sure how to resolve those.