Hi, I was wondering if there is a way to cycle through the color spectrum with 3 LEDs (one red, one green, and one blue) because my only RGB LED only lights up in red and blue, not green.
I know how to make the connections for the LEDs, I just dont know how to code them.
I will be using the red LED for port 9, green LED for port 10, and the blue one for port 11.
3 separate LEDs could work, but you would need to put them close together behind a highly diffusing medium of some kind, otherwise the colours will not mix and you will just see red, green and blue fading on and off.
If your RGB led does not light green, it is not (or is no longer) an RGB led! Did it ever light green? Are you certain it is not a red/blue bi-colour led? How many pins does it have?
There must be hundreds of sketches to perform colour cycling using an RGB led. Just Google.