FastLED-Sparkcore
FastLED-Sparkcore copied to clipboard
RGB.control() on photon blocked by FastLED
Cannot seem to use RGB.control command anymore on photon due to the FastLED Library.
command: RGB.control(true); // to gain control of the photon system led
compile error: error: reference to 'RGB' is ambiguous
I only get this when I include the FastLED Library. I imagine FastLED is using this RGB reference for something else. Anyway that can get changed to free RGB.control back up? Or some kind of workaround?
Error is due to FastLED taking over the RGB namespace - see https://community.particle.io/t/disable-pulsing-cyan/14032 for more.
Solution from Particle: use absolute referencing, ::RGB (unsure of terminology):
::RGB.control(true);
::RGB.color(255, 255, 255);