Can someone plz help me with an alternate single line code instead of multiple leds lines in fastLED program as given in attached code. All LEDs should be simultaneously blink and not sequentially…
Because I want to add multiple patterns in one loop and when call out from the loop using attachinterupt , it compltes the loop and then exits which delays other followed funtion ….hence wants to minimise or optimize the code for faster callout/interrupt..
You can declare the CRGB values in a constant array, and use memcpy() to move them in one line, to leds[]. For the zero values, you can clear the array with memset().
None of the suggestions so far, have involved any sequential activity. So I have no idea why you're talking about that.
All the array assignments are performed invisibly, it is only when show() is called, that the LEDs change state.