ToF Range Finder Sensor (VL6180X)
This script communicates with the VL6180 Range Finder I2C sensor. You can find more information on the sensor here: https://www.sparkfun.com/products/12785
This script initializes the slave device with the sI array (see script below) for the proper mode of operation. The application note contains these values on page 24.
The script then reads the distance value from the sensor and reports it to a USER_RAM register, accessible in many other programs, such as LabVIEW, Python, C#, or the LabJack logging software, LJLogM.