writeByteReg method

void writeByteReg(
  1. int address,
  2. int register,
  3. int byteValue
)

Writes a byteValue to the register of the I2C device with the address.

Implementation

void writeByteReg(int address, int register, int byteValue) {
  var data = <I2Cmsg>[];
  data.add(I2Cmsg.buffer(address, [], [register, byteValue]));
  var result = transfer(data);
  result.dispose();
}