How to change the Core LED color?

Hi all,
Yesterday I got my spark core and it all worked fine. I want to change or off the Core RGB LED color when my application running, because of the Core RGB LED light is so bright. I think maybe edit and re-build spark core firmware it’s could be, but I want to use without rebuild firmware.
Any good idea to do it?
Thank you.

Hi @hirotakaster,

We added functions to do this recently, you can take control of the RGB led using:

-- take control of the LED
RGB.control(true);

-- resume normal operation
RGB.control(false);

// red, green, blue, 0-255
RGB.color(0, 0, 0); 
2 Likes

Hi @Dave ,
Thank you, that’s nice!! I can control the RGB led :smile:

1 Like

This has now been documented in the firmware docs:

http://docs.spark.io/#/firmware/libraries-rgb

1 Like

Hi @zach
Thank you for letting me know!!