Hi there. I am working on an led project and I am having a

Hi there. I am working on an led project and I am having a little trouble mapping my leds to different arrays to get effects that I want. The picture below describes the wiring of the 500 leds inside a 5m tall structure. There are 300 in the top half of the tower and 200 in the bottom. They are mounted in the middle.

Its been easy to split the leds in consecutive sections but I am struggling to map them so that they map from top to bottom.
What I want to do is run animations top to bottom in two seperate arrays. E.g 149 > 0 then 499> 400) and (150->399). The second set is easy because its consecutive.

I am unsure on the syntax for the CRGB data structure to get it to jump around and count backward .

How can I concatenate the two sets ledstop1 and ledsbot1 in the following code:

CRGB rawleds[500];
CRGBSet leds(rawleds, 500);
CRGBSet ledstop1(leds(0,149));
CRGBSet ledsbot1(leds(400,499));
CRGBSet ledstopbot2(leds(150,399));

struct CRGB * ledstopbot1[] ={-ledtop1,-ledsbot1};

I would be happy to do it manually with a number list but how do I put that into a crgbset?

int ledstopbot[149,148,147,146,145,144,143,142,141,140,139,138,137,136,135,134,133,132,131,130,129,128,127,126,125,124,123,122,121,120,119,118,117,116,115,114,113,112,111,110,109,108,107,106,105,104,103,102,101,100,99,98,97,96,95,94,93,92,91,90,89,88,87,86,85,84,83,82,81,80,79,78,77,76,75,74,73,72,71,70,69,68,67,66,65,64,63,62,61,60,59,58,57,56,55,54,53,52,51,50,49,48,47,46,45,44,43,42,41,40,39,38,37,36,35,34,33,32,31,30,29,28,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,400,401,402,403,404,405,406,407,408,409,410,411,412,413,414,415,416,417,418,419,420,421,422,423,424,425,426,427,428,429,430,431,432,433,434,435,436,437,438,439,440,441,442,443,444,445,446,447,448,449,450,451,452,453,454,455,456,457,458,459,460,461,462,463,464,465,466,467,468,469,470,471,472,473,474,475,476,477,478,479,480,481,482,483,484,485,486,487,488,489,490,491,492,493,494,495,496,497,498,499 ];

First post here but thanks in advance if you can help! I have been devouring all the awesome free info and examples from this community for this project.

Just realized my array of numbers is wrong should be:

int ledstopbot[149,148,147,146,145,144,143,142,141,140,139,138,137,136,135,134,133,132,131,130,129,128,127,126,125,124,123,122,121,120,119,118,117,116,115,114,113,112,111,110,109,108,107,106,105,104,103,102,101,100,99,98,97,96,95,94,93,92,91,90,89,88,87,86,85,84,83,82,81,80,79,78,77,76,75,74,73,72,71,70,69,68,67,66,65,64,63,62,61,60,59,58,57,56,55,54,53,52,51,50,49,48,47,46,45,44,43,42,41,40,39,38,37,36,35,34,33,32,31,30,29,28,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1,0,499,498,497,496,495,494,493,492,491,490,489,488,487,486,485,484,483,482,481,480,479,478,477,476,475,474,473,472,471,470,469,468,467,466,465,464,463,462,461,460,459,458,457,456,455,454,453,452,451,450,449,448,447,446,445,444,443,442,441,440,439,438,437,436,435,434,433,432,431,430,429,428,427,426,425,424,423,422,421,420,419,418,417,416,415,414,413,412,411,410,409,408,407,406,405,404,403,402,401,400, ];

For some projects I have all my led references go through a ‘look up table’, That way you can pretend that your leds start at the bottom and then go to the top, alternate side to side with all odd in one column… Though it doesn’t solve your problem of CRGBSet assignment, it might make all the other math so much easier to do that it would be worth it.