changed pwm example as LED pulse