i2cLookup method

int i2cLookup(
  1. String i2cName
)

I2C lookup - mraa_i2c_lookup

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

Implementation

int i2cLookup(String i2cName) =>
    _impl.mraa_i2c_lookup(i2cName.toNativeUtf8().cast<Char>());