read method

double read(
  1. MraaPwmContext dev
)

Read - mraa_pwm_read

Read the output duty-cycle percentage, as a double Returns a floating-point value representing percentage of output. The value should lie between 0.0f (representing on 0%) and 1.0f. Values above or below this range will be set at either 0.0f or 1.0f.

Implementation

double read(MraaPwmContext dev) => _impl.mraa_pwm_read(dev);