Help me out here.
I have three strips of RGB addressable of different lengths A 20 leds, B 15 leds, C 10 leds
which I have set up like this
#include "FastLED.h"
#define NUM_LEDS_PART_A 20
#define NUM_LEDS_PART_B 15
#define NUM_LEDS_PART_C 10
CRGB ledsA[NUM_LEDS_PART_A];
CRGB ledsB[NUM_LEDS_PART_B];
CRGB ledsC[NU
M_LEDS_PART_C];
I want to set void loop in such away that strip A and B will run the leds in a mirrored manner but different colours e.g yellow in A and blue in B while strip B runs independently.
I have noted that fastled runs one strip after another in this set up.
void loop() {
for (int i = 0; i <= 19; i++) {
ledsA = CRGB ( 255, 255, 0);
- FastLED.show();*
- delay(50);*
- }*
- for (int i = 0; i <= 19; i++) {*
_ ledsA = CRGB ( 0, 0, 0);_
* FastLED.show();*
* delay(50);*
* }*
* for (int i = 0; i <= 14; i++) {*
_ ledsB = CRGB ( 0, 0, 255);
* FastLED.show();
delay(40);
}
for (int i = 0; i <= 14; i++) {
ledsB = CRGB ( 0, 0, 0);
FastLED.show();
delay(40);*_
* for (int i = 0; i <= 9; i++) {*
_ ledsC = CRGB ( 0, 255, 0);
* FastLED.show();
delay(40);
}
for (int i = 0; i <= 9; i++) {
ledsC = CRGB ( 0, 0, 0);
FastLED.show();
delay(40);*_
* } *
* }*
Assistance will be highly appreciated.