Add PWM method and example