focalintent / FastLED-Sparkcore

SparkCore specific port of FastLED
MIT License
24 stars 34 forks source link

RGB.control() on photon blocked by FastLED #13

Open cosmicc opened 7 years ago

cosmicc commented 7 years ago

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?

emcniece commented 7 years ago

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