https://github.com/adafruit/Adafruit_VL6180X
This is the documentation for Adafruit’s VL6180X driver for the Arduino platform. It is designed specifically to work with the Adafruit VL6180X breakout: http://www.adafruit.com/products/3316
These sensors use I2C to communicate, 2 pins (SCL+SDA) are required to interface with the breakout.
Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!
Written by ladyada for Adafruit Industries.
BSD license, all text here must be included in any redistribution.