Main Content

Interface I2C

Utiliser l’interface I2C du Raspberry Pi®

Utilisez l’interface I2C du Raspberry Pi pour vous connecter à des dispositifs et les contrôler.

Objets

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

Fonctions

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

Rubriques

Résolution des problèmes

Troubleshoot Raspberry Pi I2C Interface

Troubleshoot I2C interface on the Raspberry Pi hardware.