.frequency Property
Function: |
For the currently selected PWM channel (selection is made through pwm.num), indicates the frequency of modulation. |
Type: |
Real |
Value Range: |
30 to 20000, default = 1000. |
See Also: |
--- |
Details
The unit for the value range is hertz, meaning that the usable range is from 30Hz to 20kHz.
After setting or modifying the frequency of any given pulse-width modulation (PWM) channel, you need to call pwm.update or pwm.updateall for the changes to take effect.