.update Method

Function:

For the currently selected PWM channel (selection is made through pwm.num), updates the frequency and duty cycle.

Syntax:

pwm.update()

Returns:

---

See Also:

pwm.dutycycle, pwm.frequency, pwm.updateall

Details

After setting or modifying the duty cycle or frequency of any given PWM channel, you need to call pwm.update or pwm.updateall for the changes to take effect.