Reference+
Name
set()
Class
PWM
Description
Enables the PWM output
When no period is specified, a default 1 kHz (1000 Hz) is used.
Examples
Syntax
.set(period, duty)
Parameters
period
(int)
cycle period in Hzduty
(float)
duty cycle, 0.0 (always off) to 1.0 (always on)
Return
void
![Creative Commons License](https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png)
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.