World smallest Time-of-Flight ranging and gesture detection sensor
This library provides the VL53L0X laser rangefinder API function
//i2c_addr:Set I2C sub-device address
void begin(uint8_t i2c_addr);
/*!
* @brief Set operational mode to VL53L0X
*
* @param mode: Work mode settings
* Single : Single mode
* Continuous : Back-to-back mode
* @param precision: Set measurement precision
* High:High precision(0.25mm)
* Low: Low precision(1mm)
*/
void setMode(uint8_t mode, uint8_t precision);
void start();
void stop();
uint16_t getDistance();
uint16_t getAmbientCount();
uint16_t getSignalCount();
uint8_t getStatus();
MCU | Work Well | Work Wrong | Untested | Remarks |
---|---|---|---|---|
FireBeetle-ESP32 | √ | |||
FireBeetle-ESP8266 | √ | |||
FireBeetle-BLE4.1 | √ |
Written by lixin([email protected]), 2017. (Welcome to our website)