I see that FastLED has a clearData method.

I see that FastLED has a clearData method. I assumed that this was intended to clear the data in the array that is passed to the addLeds call during setup (equivalent to memset8( leds, 0, NUM_LEDS * sizeof(CRGB))). In my testing though, it doesn’t seem to do anything.

Am I misunderstanding its purpose or perhaps using it incorrectly? I ended up writing my own code (easy enough) but if this is supposed to be working, but isn’t, I figured someone would like to know.

ClearData by default just clears the data in the array - but you need to pass a flag to it to push the data out to the strip. It isn’t documented because I’m not overly happy with it and want to change it.

Ok - thanks Daniel. I’ll use my method for now until you have something you are happy with.