I have tried the code written by deshipu for the VL53L0X which starts but fails at getting spad_info:
Code: Select all
>>> from machine import Pin, I2C
>>> i2c = I2C(scl=Pin(5), sda=Pin(4), freq=400000)
>>> i2c.scan()
[41]
>>> from vl53l0x import VL53L0X
>>> v = VL53L0X(i2c)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/lib/vl53l0x.py", line 36, in __init__
File "/lib/vl53l0x.py", line 96, in init
File "/lib/vl53l0x.py", line 252, in _spad_info
TimeoutError: