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

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.