.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: |
Details
After setting or modifying the duty cycle or frequency of any given pulse-width modulation (PWM) channel, you need to call pwm.update or pwm.updateall for the changes to take effect.