Arduino101 LEDFadeControl

Control the brightness of your LED with a potentiometer (a.k.a. “pot”). The pot works just like the resistor/photoresistor combo we used in the Photo-Blink sketch. This sketch also introduces the map function, which helps make up for the difference between what the analog inputs read (0-1023) and what the PWM pins can put out (0-255).