pwmLookup method

int pwmLookup(
  1. String pwmName
)

PWM lookup - mraa_pwm_lookup

Get the PWM index by name, the board must be initialised. Returns the MRAA index for PWM name or Mraa.generalError on error.

Implementation

int pwmLookup(String pwmName) =>
    _impl.mraa_pwm_lookup(pwmName.toNativeUtf8().cast<Char>());