0

I'm currently working on a rather large LED display and am wondering if it's possible to output more than one CRGB LED array to a single pin (using offsets; I don't want to write different values to the same pixel).

I want to do something like the following:

data_top = CRGB[NUM_LEDS_PER_STRIP *2]
data_bottom = CRGB[NUM_LEDS_PER_STRIP *2]

// NEOPIXEL leds on pin 10 starting at offset 0 on the strip and starting at index 0 in the top led array
FastLED.addLeds<NEOPIXEL, 10, 0>(data_top, 0, NUM_LEDS_PER_STRIP);

// NEOPIXEL leds on pin 10 starting at offset NUM_LEDS_PER_STRIP on the strip and starting at index 0 in the bottom led array
FastLED.addLeds<NEOPIXEL, 10, NUM_LEDS_PER_STRIP>(data_bottom, 0, NUM_LEDS_PER_STRIP);

// NEOPIXEL leds on pin 11 starting at offset 0 on the strip and starting at index NUM_LEDS_PER_STRIP in the top led array
FastLED.addLeds<NEOPIXEL, 10, 0>(data_top, NUM_LEDS_PER_STRIP, NUM_LEDS_PER_STRIP * 2);

// NEOPIXEL leds on pin 11 starting at offset NUM_LEDS_PER_STRIP on the strip and starting at index NUM_LEDS_PER_STRIP in the bottom led array
FastLED.addLeds<NEOPIXEL, 10, NUM_LEDS_PER_STRIP>(data_bottom, NUM_LEDS_PER_STRIP, NUM_LEDS_PER_STRIP * 2);

The problem is that there's a top and bottom physical strip that I want to animate (and so the manipulations are much easier when the data structure matches the physical world), however the way I'm having to wire the data lines is such that pin 10 controls half of the top and half of the bottom and pin 11 controls the other half of each.

Anyone have any suggestions?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.