In this tutorial we will learn how to change the color of an RGB LED connected to Arduino, alternating for two seconds the following colors: red, green, blue, and then orange, yellow, indigo and purple.

It is similar to the previous  fade led effect experiment but it is not limited to only one LED but there are three LEDs integrated in a single diode.

An RGB module contains three tiny LEDs (red, green, blue).