tests potentiometer control of brightness