Can you setup FastLED as single and separate?

Hi everyone,

I am trying to make a program that controls 2 LED strips;
I currently have setup so it works as 2 individual areas

CRGB leds[NUM_STRIPS][NUM_LEDS_PER_STRIP];

FastLED.addLeds<NEOPIXEL, 2>(leds[0], 32);
FastLED.addLeds<NEOPIXEL, 4>(leds[1], 18);

Is it possible to also have a setup as 1 strip as well as individual ones?

CRGB leds[TOTAL_LEDS];

FastLED.addLeds<NEOPIXEL, 2>(ledStrips, 0, 32);
FastLED.addLeds<NEOPIXEL, 4>(ledStrips, 32, 18); 

So 1 program can cycle through all LEDs linked, not just the ones connected to 1 data pin.

What happens when you try it? You can experiment, you know.

I think that both strips would have to be connected to the same output pin to be controlled by one controller, but I have not tried anything like that so can't say for sure. Why not wire Dout of strip 1 to Din of strip 2 ( make them into one strip) and run them from the same pin?

when try with both like that i cant get to work with either format.

i am trying to get so 1 strip can run 1 loop and the other strip another loop as well as the option to both run on the same loop... if put both onto 1 Digital Out wouldn't that prevent me from doing this?

with just 1 of the formats it works up to the point of both having a cycle program... 1 static and one cycle works, so wanted the cycle ones to run over both.

I found the best thing to do was use the leds[Total_LEDS], then add loops to split them into 2 different areas when need to.

so can use for all:

for ( int i = 0; i < NUM_LEDS; i++) {

For First Section:

for ( int i = 0; i < AREA1_LEDS; i++) {

then for second part:

for ( int i = AREA1_LEDS; i < NUM_LEDS; i++) {

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.