pwm example update