Module libbeaglebone::i2c [] [src]

The I2C module.

The BeagleBone Black has 2 I2C interfaces available (I2C1 and I2C2). These can be enabled by using the bone_capemgr module.

As an example, use the following command to enable UART4: sudo sh -c "echo 'BB-I2C1' > /sys/devices/platform/bone_capemgr/slots" This command works for recent kernel versions. If you wish to enable another I2C, substitute its number for 1 in the command above.

Structs

I2C

Represents and I2C interface.

Functions

ioctl_i2c_smbus
ioctl_set_i2c_slave_addr