Basic example to fade the colors of a RGB LED.

A potentiometer is used to display rainbow colors on an rgb LED. It is the type in the Fritzing Starter Kits (pins: red, com. cathode, blue, green).