PWM
Background
Implements userspace PWM, via the sysfs interface.
Class Description
-
class SysFS_PWM_Pin
A PWM pin, as represented in
/sys/class/pwm/pwmchip0/pwm7/Encapsulates an exported
sysfsPWM pin. It does not export the pin itself (by writing to/sys/class/pwm/pwmchipN/export). Rather, you have to make sure that the pin directory exists, and is configured correctly.Note that the pin’s
periodproperty has no setter. This is because a PWM pin’s period is not subject to change once it has been configured (only theduty_cycleis).