writeBytes method

void writeBytes(
  1. int address,
  2. List<int> byteData
)

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