The i2c interface

i2c provides access to a specific I2C controller. This interface is restricted because it provides privileged access to hardware devices.

Auto-Connect: no
Attributes:

  • path (slot): path to i2c device node e.g. /dev/i2c-0

Snaps that want to consume an i2c device simply plugs: [ i2c ] and the i2c device to connect is specified during interface connection. Available i2c devices for the system can be seen with snap interfaces. Once connected, the consuming snap can use the device via the path specified by the connected slot.

This is a snap interface. See Interface management and Supported interfaces for further details on how interfaces are used.

Last updated a month ago. Help improve this document in the forum.