添加 Linux 下 I2C 工具.
Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
parent
2be2c2b295
commit
a4fbc26c79
|
@ -0,0 +1,10 @@
|
||||||
|
# Linux 下 I2C 工具
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# 检测 I2C 设备
|
||||||
|
i2cdetect -r -y <bus num>
|
||||||
|
# 设置 I2C 设备寄存器值
|
||||||
|
i2cset -f -y <bus num> <dev addr> <reg addr> <value>
|
||||||
|
# Dump I2C 设备寄存器
|
||||||
|
i2cdump -f -y <bus num> <dev addr>
|
||||||
|
```
|
Loading…
Reference in New Issue