parent
a4fbc26c79
commit
bca84b9876
|
@ -2,9 +2,11 @@
|
|||
|
||||
```bash
|
||||
# 检测 I2C 设备
|
||||
i2cdetect -r -y <bus num>
|
||||
i2cdetect -y -r <bus num>
|
||||
# 设置 I2C 设备寄存器值
|
||||
i2cset -f -y <bus num> <dev addr> <reg addr> <value>
|
||||
i2cset -f -y <bus num> <dev addr> <reg addr> <value>...[c/b/w/i/s]
|
||||
# 读取 I2C 设备寄存器的值
|
||||
i2cget -f -y <bus num> <dev addr> [reg addr[b/w/c]]
|
||||
# Dump I2C 设备寄存器
|
||||
i2cdump -f -y <bus num> <dev addr>
|
||||
i2cdump -f -y <bus num> <dev addr> [b/w/W/s/i/c]
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue