Please keep in mind I effectively only have one LED strand and one DATA_PIN. The first 22 LEDs are the same LEDs I want access to when I wish to display either 22 LEDs or 242 LEDs.
I tried a number of things to no avail... I tried
void setup() {
FastLED.addLeds<WS2811, DATA_PIN, RGB>(leds, 242);
FastLED.addLeds<WS2811, DATA_PIN, RGB>(leds, 22);
}
// I then tried lighting all 242 LEDs with:
FastLED[0].showLeds();
// only 22 LEDs light
//////////////////////////////////////////////////////////////////////////////////////////////////////////
Next I tried defining two controllers:
#define NUM_LEDS 242
#define NUM_STRIPS 2
CRGB leds[NUM_LEDS];
CLEDController *controllers[NUM_STRIPS];
void setup()
{
controllers[0] = &FastLED.addLeds<WS2811, DATA_PIN>(leds, 242);
controllers[1] = &FastLED.addLeds<WS2811, DATA_PIN>(leds, 22);
}
// I then tried lighting all 242 LEDs with:
controllers[0]->showLeds(128);
// Only 22 LEDs light but controller 0 has 242 LEDs...likely because both controllers have the same
// data pin and controller[1] was setup last. In fact if I tried swapping controllers 0 and 1,
// such that controller 1 had 242 LEDs and then:
// controllers[1]->showLeds(128); does in fact light the 242 LEDs.
// As an experiment I tried assigning each controller a separate data pin and this does in fact work in that I
// can light the number of LEDs (with the FRAME rate that corresponds to that number of LEDs) based on the
// controller I choose.....The only problem is that I have but one string of LEDs with only 1 data pin. So to
// take implement this scheme I would need to add hardware to switch my one
// panel data input pin between two Arduino data pins to allow me to
// change from driving 22 LEDs to 242 LEDs.
/////////////////////////////////////////////////////////////////////////////////////////////////////
The idea of defining multiple STRIPs of different lengths won't work as the FastLED.show(); shows all STRIPs defined. There is no command to light just STRIP 1 or 0 independently. Once again both strips have the same DATA PIN and are in fact the same STRIP.