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