.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=1.

See Also:

---

Details

The unit for the value range is hertz, meaning the usable range is from 30Hz to 20kHz.

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