作者: Sam (甄峰) sam_code@hotmail.com
最近又需要研究I2C Driver。在测试连线时,需要I2C工具。于是下载编译了I2C_Tools. 记录之。
1. download and
Make:
$git
clone git://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git
$make
可以看到,库文件被放在i2c-tools/lib, 可执行文件被放在i2c-tools/tools。
2. 使用:
2.1:察看I2C总线:
# ./i2cdetect -l
i2c-0 i2c
Tegra I2C adapter
I2C adapter
i2c-1 i2c
Tegra I2C adapter
I2C adapter
i2c-2 i2c
Tegra I2C adapter
I2C adapter
i2c-3 i2c
Tegra I2C adapter
I2C adapter
i2c-4 i2c
Tegra I2C adapter
I2C adapter
i2c-5 i2c
Tegra I2C adapter
I2C adapter