Hello i am trying to interface with my VL535L TOF module, but upon installing the library i am getting an error:
File "/home/pi/Desktop/VL53L1X.py", line 3, in <module> tof = VL53L1X.VL53L1X(i2c_bus=1, i2c_address=0x29) TypeError: 'module' object is not callable
i have tried different source of library but the example code given throws that error.
here is the full code, i am using MU to create and run it.
import VL53L1X tof = VL53L1X.VL53L1X(i2c_bus=1, i2c_address=0x29) tof.open() # Initialise the i2c bus and configure the sensor tof.start_ranging(1) # Start ranging, 1 = Short Range, 2 = Medium Range, 3 = Long Range distance_in_mm = tof.get_distance() # Grab the range in mm tof.stop_ranging() # Stop ranging