Main Content

I2C Interface

Use the Raspberry Pi®’s I2C interface

Objects

raspiConnection to Raspberry Pi board
i2cdevConnection to device on Raspberry Pi hardware

Functions

scanI2CBusScan I2C bus device addresses
readRead data from I2C device
writeWrite data to I2C device
readRegisterRead from register on I2C device
writeRegisterWrite to register on I2C device
enableI2CEnable I2C interface
disableI2CDisable I2C interface

Examples and How To

Concepts

Troubleshooting

Troubleshoot Raspberry Pi I2C Interface

Troubleshoot I2C interface on the Raspberry Pi hardware.