|
||
---|---|---|
.. | ||
build | ||
board_init.c | ||
board_init.h | ||
clock_init.c | ||
clock_init.h | ||
main.c | ||
pin_init.c | ||
pin_init.h | ||
readme.md | ||
softi2c_port.c |
softi2c_scan
实验过程
- 初始化 softi2c。
- 用户输入任意字符,开始扫描 i2c 总线上的设备。
- 打印扫描到的 i2c 设备地址。
实验结果
softi2c_scan demo. press any key to scan i2c bus. 0x50 addr scanned. 0x68 addr scanned. 0x50 addr scanned. 0x68 addr scanned.