parent
df43ef7be9
commit
dc37112389
|
@ -22,6 +22,10 @@ i2cset -f -y <bus num> <dev addr> <reg addr> <value>...[c/b/w/i/s]
|
|||
i2cget -f -y <bus num> <dev addr> [reg addr[b/w/c]]
|
||||
# Dump I2C 设备寄存器
|
||||
i2cdump -f -y <bus num> <dev addr> [b/w/W/s/i/c]
|
||||
# 连续读写
|
||||
i2ctransfer -f -y <bus num> {r|w}<length_of_message>[@address]
|
||||
# 示例:连续写
|
||||
i2ctransfer -f -y 3 w6@0x1a 0x80 0x01 0x00 0x00 0x00 0x82
|
||||
```
|
||||
|
||||
## 3.i2cdetect
|
||||
|
@ -53,7 +57,7 @@ Each cell in the output table will contain one of the following symbols:
|
|||
**Options:**
|
||||
|
||||
* **-y**
|
||||
|
||||
|
||||
Disable interactive mode. By default, i2cdetect will wait for a confirmation from the user before messing with the I2C bus. When this flag is used, it will perform the operation directly. This is mainly meant to be used in scripts.
|
||||
|
||||
* **-a**
|
||||
|
|
Loading…
Reference in New Issue