gpioLookup method

int gpioLookup(
  1. String pinName
)

GPIO lookup - mraa_gpio_lookup

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

Implementation

int gpioLookup(String pinName) =>
    _impl.mraa_gpio_lookup(pinName.toNativeUtf8().cast<Char>());