Total newbie question have got a strip of ws2812b is it possible to set a group of leds to the same colour without doing them individually say leds 1 to 6 green then 7 to 12red rtc
You might be able to try:
fill_solid(leds,6, 0x00ff00);
fill_solid(leds+6,6, 0xff0000);
For repeating and animated patterns, I use sine waves, lop off the bottom and change the phase, so that I don’t have a pile of loops or have to count pixels. . . and if I’m smart enough, I’ll use millis() to control the speed rather than use those nasty blocking delay() functions.
Here’s an example using EVERY_N_MILLISECONDS()
https://github.com/atuline/FastLED-Demos/blob/master/one_sine/one_sine.ino
Have a look into CRGBSet. Here’s an example:
Thanks managed to get it working eventually