I use code below to test it, it will read second register, if it works, it will show a continuous change number.
Code: Select all
MicroPython v1.8 on 2016-05-09; F7DISC with STM32F746
Type "help()" for more information.
>>> from pyb import I2C
>>> i2c=I2C(1, I2C.MASTER)
>>> i2c.scan()
[87, 104]
>>> i2c.send(0, 104);i2c.recv(1, 104)[0]
0
>>> i2c.send(0, 104);i2c.recv(1, 104)[0]
16
>>> i2c.send(0, 104);i2c.recv(1, 104)[0]
16
>>> i2c.send(0, 104);i2c.recv(1, 104)[0]
16
>>>