Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you may not be able to execute some actions.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
源程序: from pyb import I2C i2c = I2C(2, I2C.MASTER) # 创建并初始化为主机 i2c.mem_write(0x00,0x40,0x00)
I2C设备没连接好,你在硬件上加了0x00这个地址的I2C设备?设备也不会用这个地址。