setPeriodNs method

void setPeriodNs(
  1. int nanoseconds
)

Sets the period in nanoseconds of the PWM.

Implementation

void setPeriodNs(int nanoseconds) {
  _checkError(_nativePWMsetPeriodNs(_pwmHandle, nanoseconds));
}