Hello there, I'm trying to get a constant orange color (or ANY color other than the basic red, green or blue) out of the RGB LED. When I enter different values for the red, green and blue, the LED cycles through the three colors instead of showing just one color based on the mix of those values. My code is:
I moved your topic to an appropriate forum category @ansh4real.
In the future, please take some time to pick the forum category that best suits the subject of your topic. There is an "About the _____ category" topic at the top of each category that explains its purpose.
I tried putting it setup(), but the result is the same. It blinks through the colors individually, instead of showing just one color.
I'm using Arduino Uno.
I've connected one 330 resistor to the ground of the RGB led.
It should not blink. Are you sure that you did upload the sketch successfully and did the upload to the correct board (e.g. you have two Unos connected and picked the wrong one )