Açıklama Yok

Rbb666 afb8d5394f 修改i2c_tools和i2c_utils文件为.c 9 ay önce
.github 97745d739e add RT-Thread_Packages_Test ci 2 yıl önce
docs 99f018f775 Initial Commit 6 yıl önce
src afb8d5394f 修改i2c_tools和i2c_utils文件为.c 9 ay önce
.gitignore 99f018f775 Initial Commit 6 yıl önce
LICENSE 09a42f15bd Create LICENSE 6 yıl önce
README.md 845e5e9197 Update README.md 4 yıl önce
SConscript afb8d5394f 修改i2c_tools和i2c_utils文件为.c 9 ay önce

README.md

i2c-tools

1、介绍

i2c-tools 包含了一些很方便对 i2c 设备进行调试的小工具。

msh > i2c scan i2c1
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
msh >

硬件 I2C (可以 list_device 查看 i2c 设备):

---------------
i2c tools help:
---------------
i2c scan  bus_name
i2c read  bus_name address  register  [len=1]
i2c write bus_name address [register] data_0 data_1 ...

软件 I2C (可以自定义两个引脚作为 SCL 和 SDA):


i2c tools help:
---------------
i2c scan  pin_sda pin_scl
i2c read  pin_sda pin_scl address  register  [len=1]
i2c write pin_sda pin_scl address [register] data_0 data_1 ...

2、联系方式