I have a question about the .addleds function that I'm having issues with.

I have a question about the .addleds function that I’m having issues with.

Lets say I have 10 LEDs in an array, 0 through 9. On one pin I want to output them in that order, but then a second pin I want to output 5 through 9, then 0 through 4 because of the wiring.

I tried the code below and it doesn’t work, seems the second instance of .addLeds overwrites the first instead of adding it on. Does anyone know if this is possible or do I need to build a second matrix for the other display?

FastLED.addLeds<NEOPIXEL, LED_PIN1>(leds, 0, 9); // Maps part 1
FastLED.addLeds<NEOPIXEL, LED_PIN2>(leds, 5, 9); // Maps part 1
FastLED.addLeds<NEOPIXEL, LED_PIN2>(leds, 0, 4); // Maps part 2

You can only call addLeds once per pin - any other mappings you want to do you have to do manually in code.

@Daniel_Garcia Thanks! I’ll just add a function to swap the values into a new array at the end. Figured I’d ask to see if I could save some space. Thanks!