Add pwm support
Update examples