WS2812 led strip

Hi there - after some help with led strip strip ws2812b, using the fastled libray and a nano. I have 6 strips in a tower, and trying work out how to flash the leds in row and coulums thinking of an array for ledstrip 1 (leds 1-8) colour blue, ledstrip 2 (9-17) etc, just after ideas ?

does that actually matter ?

Simplest solution would be just the single output pin and address sections of it for every column.
Alternately, you can even create a 2 dimension array for led output buffer, and reference it to FastLED as if it is a 1 dimension array,

#include <FastLED.h>

// How many leds in your strip?
#define NUM_LEDS 40

#define DATA_PIN 7

// Define the array of leds
CRGB leds [6] [NUM_LEDS /  6];

void setup() { 

	LEDS.addLeds<WS2812,DATA_PIN,RGB>(leds,NUM_LEDS);
}

Just make sure that you never write beyond the bounds of the array (for 1 or 2 dimensions that is always true)
or your program will crash

probably not.
I agree, my comment was useless, so I'll remove it

Well the option exists,

Thanks - was going to use just one pin, then could have them going in rows as well as up, and the just use a difernet array

I once had to do this for a question, where the user wanted to connect up various strips together. These included two circular displays. They wanted to make the lit LEDs follow a pattern, so I came up with this diagram showing the real pixel values and their virtual pixel equivalent.

I think you need to do the same sort of thing with what you want to do.

1 Like

That a simlar thing to what I trying to, so how did get the cicles to do I differnet thing to the others ?

See if this post helps:-

Thanks just the sort of thing I was looking for.

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