1,安装iic-tools
sudo apt install i2c-tools -y
2,查看有几条iic总线
[root@sino-platform:/root]# ls /dev/i2c-
i2c-0 i2c-1 i2c-2 i2c-3
3,查看i2c命令
[root@sino-platform:/root]# i2c
i2cdetect i2cdump i2cget i2cset
4,iic-help命令
[root@sino-platform:/root]# i2cdetect
BusyBox v1.27.2 (2020-11-24 16:09:44 CST) multi-call binary.Usage: i2cdetect [-F I2CBUS] [-l] [-y] [-a] [-q|-r] I2CBUS [FIRST LAST]
Detect I2C chips.
I2CBUS i2c bus number
FIRST and LAST limit the probing range-l output list of installed busses
-y disable interactive mode
-a force scanning of n