From dc371123894f513b92c7ab757730ee1d8b28aa81 Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Thu, 3 Jun 2021 09:23:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=BF=9E=E7=BB=AD=E8=AF=BB?= =?UTF-8?q?=E5=86=99=E6=8C=87=E4=BB=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: rick.chan --- Software/Applications/I2C/Linux_下_I2C_工具.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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**