FastLED-Sparkcore icon indicating copy to clipboard operation
FastLED-Sparkcore copied to clipboard

RGB.control() on photon blocked by FastLED

Open cosmicc opened this issue 9 years ago • 1 comments

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?

cosmicc avatar Nov 29 '16 05:11 cosmicc

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);

emcniece avatar Apr 18 '17 02:04 emcniece