Use a potentiometer to vary the intensity of a LED