Loadable Function: i2c_addr (i2c, address)
Loadable Function: addr = i2c_addr (i2c)

Set new or get existing i2c slave device address.

Inputs

i2c - instance of octave_i2c class.
address - i2c slave device address of type Integer. The address is passed in the 7 or 10 lower bits of the argument.

Outputs

addr - If address parameter is omitted, the i2c_addr() shall return current i2c slave device address.

Package: instrument-control