writeBytes method
Writes byteData
to the I2C device with the address
.
Some I2C devices can directly be written without an explicit register.
Implementation
void writeBytes(int address, List<int> byteData) {
var data = <I2Cmsg>[];
data.add(I2Cmsg.buffer(address, [], byteData));
var result = transfer(data);
result.dispose();
}