Loadable Function: i2c = i2c ([port_path], [address])

Open i2c interface.

Inputs

port_path - the interface device port/path of type String. If omitted defaults to ’/dev/i2c-0’.
address - the slave device address. If omitted must be set using i2c_addr() call.

Outputs

i2c - An instance of octave_i2c class.

Properties

The i2c object has the following properties:

name

Name of the object

remoteaddress

the slave device address

port

The interface driver port (readonly)

Package: instrument-control