getDutyCycle method

double getDutyCycle()

Gets the duty cycle as a ratio between 0.0 to 1.0 in second of the PWM.

Implementation

double getDutyCycle() {
  return _getDoubleValue(_nativePWMgetDutyCycle);
}