Reads data from the target I2C address.
I2C address of the target device.
The buffer to store the data that is read. The transfer length is determined by the buffer's byte length. The buffer must not be modified or detached until the returned Promise settles.
Writes data to the target I2C address.
I2C address of the target device.
The data to write. The transfer length is determined by the buffer's byte length. The buffer must not be modified or detached until the returned Promise settles.
Interface that provides the methods that may be used to interact with the I2C bus on a device.