Fading an LED with PWM and a Potentiometer
Using a potentiometer and PWM on an Arduino to fade an LED. /* POT to LED test -> by Owen Mundy March 11, 2010 from: http://itp.nyu.edu/physcomp/Labs/AnalogIn —————————————————————*/ int potPin = 0; // Analog input pin that the potentiometer is attached to int potValue = 0; // value read from the pot […]