write method

MraaReturnCode write(
  1. MraaI2cContext context,
  2. Pointer<Uint8> data,
  3. int length
)

Write - mraa_i2c_write

Write length bytes to the bus, the first byte in the array is the command/register to write.

Implementation

MraaReturnCode write(
        MraaI2cContext context, Pointer<Uint8> data, int length) =>
    MraaReturnCode.returnCode(_impl.mraa_i2c_write(context, data, length));