microbit.i2c.read
Appearance
Reads the specified number of bytes from an I2C address.
Function
Synopsis
microbit.i2c.read(address, length)
Arguments
- `address` — A number indicating the 8-bit I2C address. It is twice the value of the 7-bit address.
- `length` — The number of bytes to be read.
Returns
A string, consisting of the bytes read from the I2C address.