public interface I2C extends MetaWearBoard.Module
Modifier and Type | Method and Description |
---|---|
AsyncOperation<byte[]> |
readData(byte deviceAddr,
byte registerAddr,
byte numBytes)
Read data via the I2C bus without a user id identifying the read data.
|
void |
writeData(byte deviceAddr,
byte registerAddr,
byte[] data)
Write data via the I2C bus without attaching a user id to the data.
|
void writeData(byte deviceAddr, byte registerAddr, byte[] data)
deviceAddr
- Device to write toregisterAddr
- Device's register to write todata
- Data to write, up to 10 bytesAsyncOperation<byte[]> readData(byte deviceAddr, byte registerAddr, byte numBytes)
deviceAddr
- Device to read fromregisterAddr
- Device's register to readnumBytes
- Number of bytes to read