I'm converting my project from Adafruit_NeoPixel to FastLED.

I’m converting my project from Adafruit_NeoPixel to FastLED. Does FastLED have a corresponding function to getPixelColor? I use this feature to temporarily overwrite a pixel’s color value.

You can directly access the LED array, no need for a function call. E.g.,

CRGB oldcolor;
oldcolor = leds[i];

And welcome!

Oh, cool. Thanks!

This page might be worth a quick skim. Takes a little about direct access, etc.

@Jeremy_Williams after your tip to look at your repo on github (in response to my request to display bitmaps on my array) i found its using the adafruit library, and so set about migrating to FastLED 3 (done), and of course i ran into the same problem, and recalled this question.
Now it all makes sense :wink:

@Stuart_Taylor Too funny.

@Jeremy_Williams its a snug fit isn’t it.

Btw, holdTime is declared as an unsigned long, but on occasion it gets -1 stuffed into it, and this is tested if() for. Typo?