FastLed + WS2812b --> Define one in two leds as the actual strip

Hello everybody,

I wanted to have a matrix with leds spaced by 6 cm from each other.
To reduce soldering time, I simply bought WS2812b strip (1 led every 3cm).
However, I only need to illuminate one led every 6 cm. Therefore, one in two leds is useless.

Is it possible to modify the FastLED library somewhere to take into account this perpetual offset ?
I would like to use for example "fill_solid" and only illuminate the usefull leds.

Thank you for help !

I would like to use for example "fill_solid" and only illuminate the usefull leds.

While this is done very simply you can not use that function without modifying the code. You will find in that function a “for loop”, simply change the loop increment to add two to the loop index not one.

The problem is that I want to use different function and not modify all of them.
Isn't it possible to reassign the leds; create a virtual strip of led.
Make a kind of array with the correct number of leds with the association between the "virtual" strip and the real one :
led[0] = real_led[0]
led[1] = real_led[2]
...

Something like that ?

Thanks for your reply

Make a kind of array with the correct number of leds with the association between the "virtual" strip and the real one :

No that is too complex and would involve writing a lot of new code. Is is simpler to just multiply by two every led number as you set the colour of the led you want to change.