3-Color LED Controller with Potentiometer

This may sound pretty simple, but I created away to control 3 outputs or however many needed with a potentiometer (I would recommend a smaller number of outputs due to a potentiometer only has 270 degrees of rotation). On the IDE I converted the analog signal of 0-1023 to 0-270 for easier understanding with the potentiometer.

On the physical side of things I have my potentiometer hooked to the Arduino's analog input pin 0. I have the pins of a 3-Color LED (to simulate 3 outputs) hooked to pins 12, 11, and 10 of the Arduino Board.

PLEASE DOWNLOAD AND LOOK AT CODE FOR EXPLANATION OF THE CODE. PLEASE POST ANY QUESTIONS.

Potentiometer_Control.ino (2.05 KB)

Please note that using capitals is considered shouting.

What is the question?

Or do you want to show your code?
I can move it to the exhibition section.

Can it be moved to the exhibition section? Thankyou.

robtillaart

neet-o