/vl6180x

VL6180X a Time-of-Flight I2C laser-ranging module

Primary LanguageRustMIT LicenseMIT

vl6180x

no_std driver for VL6180X (Time-of-Flight I2C laser-ranging module)

Build Status crates.io

This is currently a minimum viable implementation to get proximity measurements.

Basic usage

Include this library as a dependency in your Cargo.toml:

[dependencies.vl6180x]
version = "<version>"

Run example

The example code is based on a STM32G070 microcontroller. It can be run using

cargo run --example oneshot

This will build and flash the example using a black magic probe on MacOS. To use it on other platforms or with other jtag probes you should change tools/bmp.sh and the runner cmd in .cargo/config.