potentiometer fading an led example

Read value in from ADC and fade an LED accordingly using pwm