setEnabled method

void setEnabled(
  1. bool flag
)

Sets the output state of the PWM.

Implementation

void setEnabled(bool flag) {
  _checkError(_nativePWMsetEnabled(_pwmHandle, flag == true ? 1 : 0));
}