添加 Linux 下 I2C 工具.

Signed-off-by: rick.chan <chenyang@autoai.com>
This commit is contained in:
rick.chan 2020-09-10 14:02:16 +08:00
parent 2be2c2b295
commit a4fbc26c79
1 changed files with 10 additions and 0 deletions

View File

@ -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>
```