.enabled Property

Function:

For the currently selected PWM channel (selection is made through pwm.num), indicates whether it is enabled or disabled.

Type:

Enum (no_yes, byte)

Value Range:

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

1 — Yes: The PWM channel is enabled.

See Also:

---

Details

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.