change the brightness of led with potentiometer

change the brightness of led with potentiometer