Declaring Variables


Is there a way that I can set a numerical value to display a color on the LED?


What led are you referring to?



What colour range do you want? Red only, blue only, green only, red and blue, blue and green, red and green, red and blue and green. Or PWM values to the three colours.

I am hoping to have Red, Blue, Green, and RGB on the Esplora. I am trying to program the Esplora to show numbers on the Serial Monitor, and have the colors assigned to those number flash simultaneously.

Don't know about Esplora.

Since all you need is Red Blue or Green on a simple RGB led then you use three outputs.

All you have to do is make a 'switch case' that generates the colour you want from a single variable.