Controlling LED brightness with a PWM signal to LED driver