writeBytesReg method
Writes byteData
to the register
of the I2C device with the address
.
Implementation
void writeBytesReg(int address, int register, List<int> byteData) {
var data = <I2Cmsg>[];
var bData = <int>[];
bData.add(register);
bData.addAll(byteData);
data.add(I2Cmsg.buffer(address, [], bData));
var result = transfer(data);
result.dispose();
}