vl53l0x
no_std driver for the vl53l0x vl53l0x (Time of Flight IR distance sensor).
What works
- To be tested
Supported chips
VL53L0X
;
Basic usage
Include library as a dependency in your Cargo.toml
:
[dependencies.vl53l0x]
version = "<version>"
Use embedded-hal implementation to get I2C handle and delay then create vl53l0x handle:
use vl53l0x;
// to create sensor with i2c:
let mut tof = new.expect;
tof.set_measurement_timing_budget.expect;
tof.start_continuous.expect;
let mls = tof.read_range_continuous_millimeters;
println!;
More examples
STM32
Number of examples can be found in proving-ground repo.
ESP32-C3
https://github.com/ChocolateLoverRaj/rust-esp32c3-examples/tree/main/VL53L0X
Documentation
API Docs available on docs.rs.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.