setDutyCycleNs method

void setDutyCycleNs(
  1. int nanoseconds
)

Sets the duty cycle in nanoseconds of the PWM.

Implementation

void setDutyCycleNs(int nanoseconds) {
  _checkError(_nativePWMsetDutyCycleNs(_pwmHandle, nanoseconds));
}