From 638195753dd507b3875b8b427fc6c6e484d1c1b5 Mon Sep 17 00:00:00 2001 From: "rick.chan" Date: Fri, 11 Sep 2020 11:14:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=AB=A0=E8=8A=82,=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=20I2C=20=E5=B7=A5=E5=85=B7=E7=9A=84=E5=AE=89=E8=A3=85?= =?UTF-8?q?.?= 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 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Software/Applications/I2C/Linux_下_I2C_工具.md b/Software/Applications/I2C/Linux_下_I2C_工具.md index b5c58d3..6c95e34 100644 --- a/Software/Applications/I2C/Linux_下_I2C_工具.md +++ b/Software/Applications/I2C/Linux_下_I2C_工具.md @@ -1,5 +1,14 @@ # Linux 下 I2C 工具 +## 1.I2C 工具的安装 + +```bas +# Ubuntu +apt-get install libi2c-dev i2c-tools +``` + +## 2.基本使用方法 + ```bash # 检测 I2C 设备 i2cdetect -y -r @@ -11,7 +20,7 @@ i2cget -f -y [reg addr[b/w/c]] i2cdump -f -y [b/w/W/s/i/c] ``` -## 1.i2cdetect +## 3.i2cdetect **Synopsis:**