调整章节,增加 I2C 工具的安装.
Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
parent
313762487c
commit
638195753d
|
@ -1,5 +1,14 @@
|
|||
# Linux 下 I2C 工具
|
||||
|
||||
## 1.I2C 工具的安装
|
||||
|
||||
```bas
|
||||
# Ubuntu
|
||||
apt-get install libi2c-dev i2c-tools
|
||||
```
|
||||
|
||||
## 2.基本使用方法
|
||||
|
||||
```bash
|
||||
# 检测 I2C 设备
|
||||
i2cdetect -y -r <bus num>
|
||||
|
@ -11,7 +20,7 @@ i2cget -f -y <bus num> <dev addr> [reg addr[b/w/c]]
|
|||
i2cdump -f -y <bus num> <dev addr> [b/w/W/s/i/c]
|
||||
```
|
||||
|
||||
## 1.i2cdetect
|
||||
## 3.i2cdetect
|
||||
|
||||
**Synopsis:**
|
||||
|
||||
|
|
Loading…
Reference in New Issue