test led pwm alg