Loadable Function: [data, count] = i2c_read (i2c, n)

Read from i2c slave device.

Inputs

i2c - instance of octave_i2c class.
n - number of bytes to attempt to read of type Integer.

Outputs

The i2c_read() shall return number of bytes successfully read in count as Integer and the bytes themselves in data as uint8 array.

Package: instrument-control