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:**