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

Use the Raspberry Pi I2C Interface to Connect to a Device

Use the I2C Interface on the Raspberry Pi Hardware

Concepts

The Raspberry Pi I2C Interface

I2C Interface on the Raspberry Pi Hardware

Troubleshooting

Troubleshoot the Raspberry Pi I2C Interface

Troubleshoot I2C Interface on the Raspberry Pi Hardware

Featured Examples