i2cLookup method
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>());