i2c-tools

Tools for probing and interacting with I2C devices on Linux

brewmacoslinux
Try with needOr install directly
Source

About

Heterogeneous set of I2C tools for Linux

Commands

i2cdetecti2cdumpi2cgeti2cseti2ctransfer

Examples

Detect all I2C devices on bus 1$ i2cdetect -y 1
Read a single byte from device at address 0x50 on bus 1$ i2cget -y 1 0x50 0x00
Dump all registers from I2C device at address 0x68 on bus 0$ i2cdump -y 0 0x68