diff --git a/Software/Applications/I2C/Linux_下_I2C_工具.md b/Software/Applications/I2C/Linux_下_I2C_工具.md index 31a376d..47de3bc 100644 --- a/Software/Applications/I2C/Linux_下_I2C_工具.md +++ b/Software/Applications/I2C/Linux_下_I2C_工具.md @@ -22,6 +22,10 @@ i2cset -f -y ...[c/b/w/i/s] i2cget -f -y [reg addr[b/w/c]] # Dump I2C 设备寄存器 i2cdump -f -y [b/w/W/s/i/c] +# 连续读写 +i2ctransfer -f -y {r|w}[@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**