setPolarity method

void setPolarity(
  1. Polarity polarity
)

Sets the output polarity of the PWM.

Implementation

void setPolarity(Polarity polarity) {
  _checkError(_nativePWMsetPolarity(_pwmHandle, polarity.index));
}