Disable pulsing cyan?

I just got my Photon and it’s awesome! It worked on the first try and I made a little knock detector.

Just one thing: is it possible to disable or tone down the pulsing cyan light? I’d prefer to be able to set up my photon so it doesn’t shine all the time (but I still like the cloud integration and would like to keep it).

Yes, you just write


Then you can control the RGB LED via application code as you wish.


1 Like

Oh wow, thank you so much!

Now ideally I’d like to still have it flash red if it’s disconnected from the cloud. I see that spark.connected() should do the trick!

Once you have gained control over the RGB-LED you can make it do whatever you want :wink:

As you’ve figured already, checking Spark.connected() will do the trick - just be aware that C is case sensitive (spark.connected() won’t work).

Thank you! I think I got it to work :smile:

1 Like

Hi @cyan
To dim the LED you can add a call RGB.brightness(32) or any other number. 96 is the default, 255 the maximum.


I tried to dim the LED, but have a little problem. I use the FastLED library which results in the following compilation error:

error: reference to 'RGB' is ambiguous

This is because of NSFastLED::EOrder RGB in the FastLED library. What can I do to prevent this error?

Try ::RGB.control(true);

Or remove the use namespace directive and prepend all FastLED functions with NSFastLED::

1 Like

First of all, thanks for your answer. Both methods resolved the problem. But I have another problem now.

error: 'RGB' in namespace '::' does not name a type

I already tried with

#include "application.h"

but this only resulted in more errors.

That is very odd, since when I build one of the samples bundled with FastLED library (with added ::RGB.control(true); and such), it just works.

You just need to make sure that RGB is never ambiguous and actually uses the correct “version” of RGB.
Whenever you refer to the onboard RGB LED use ::RGB.####() and if you are dealing with the FastLED version of RGB, you need to put in NSFastLED::RGB.

I guess the place where you get

error: 'RGB' in namespace '::' does not name a type

would rather need NSFastLED::RGB

1 Like

Thank you. Now it compiles. I just have to check at home that the LED is dimmed indeed, but that should be no problem, I think.