.enabled Property


Indicates whether the currently selected PWM channel is enabled or disabled.


Enum (no_yes, byte)

Value Range:

0 - No (default): The PWM channel is disabled.

1 - Yes: The PWM channel is enabled.

See Also:



Setting this property to 0- NO disables the PWM channel and allows the corresponding line to work as a regular GPIO line. Note that after you set pwm.enabled to 0- NO, the corresponding GPIO line will be configured as an input and its output register will be set to HIGH.