Is it intended that the DATA_PIN argument in addLeds can't accept arrays? Example :

Is it intended that the DATA_PIN argument in addLeds can’t accept arrays? Example :

const uint8_t Pins[NumStrips] = {8, 9};

FastLED.addLeds<NEOPIXEL, Pins[0]>(leds[0], TotalLEDS[0]);
FastLED.addLeds<NEOPIXEL, Pins[1]>(leds[1], TotalLEDS[1]);

This doesn’t work. It will only accept a raw number or constant. The rest of the arguments work fine though.

What I want really is to be able to define my pins in an array and use a loop to do the addLeds.

Thank you!

Yes, they are template parameters, which means they have to resolve at compile time, not runtime. (This is done because there are a number of optimizations that I can (and do) make when things like the pin are known at compile time).

I understand, thanks for the quick reply Daniel!