The Adafruit NeoPixel library provides the means of controlling NeoPixel RGB LEDS.
It includes a means of constructing the color of a pixel using the Color() method, e.g.
#define COLOR_YELLOW MyPixels.Color(255,255,0)
Is there any way to access or retrieve the individual Red, Green and Blue values of an existing color?
For example, if I have :
is there any way to extract the red, green, and blue values from that pixel?
If I do something like:
** uint32_t ColorOfThePixel = MyPixels.getPixelColor(12);**
Is there any way to get the red, green, blue components out of the ColorOfThePixel variable?