@kidswong999
MicroPython v1.12-omv OpenMV v3.6.8 2020-09-28; OPENMV4-STM32H743
Type "help()" for more information.
‘>>> [ ]
A
amoc
@amoc
0
声望
4
楼层
504
资料浏览
0
粉丝
1
关注
amoc 发布的帖子
-
RE: 使用I2C时报错OSError: [Errno 5] EIO
-
使用I2C时报错OSError: [Errno 5] EIO
from pyb import I2C, Pin i2c = I2C(2, I2C.MASTER) data = i2c.mem_read(0x5a, 0x07, 2) print( ustruct.unpack('<H', data)[0])
Traceback (most recent call last):
File "", line 6, in
OSError: [Errno 5] EIO
MicroPython: v1.13-r22 OpenMV: v3.8.0 HAL: v1.9.0 BOARD: OPENMV4P-STM32H743
Type "help()" for more information.