modified PWM example to control arduino LED