i2c-tools

Detect and communicate with I2C devices on Linux systems.

brewmacoslinux
Try with needOr install directly
Source

About

Heterogeneous set of I2C tools for Linux

Commands

i2cdetecti2cdumpi2cgeti2cseti2ctransfer

Examples

scan for all I2C devices on a bus$ i2cdetect -y 1
read data from an I2C device register$ i2cget -y 1 0x50 0x00
write a value to an I2C device register$ i2cset -y 1 0x50 0x00 0xFF
dump all registers from an I2C device$ i2cdump -y 1 0x50
list all I2C buses on the system$ i2cdetect -l