no_std driver for the vl53l0x vl53l0x (Time of Flight IR distance sensor).
- To be tested
VL53L0X
;
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:
extern crate vl53l0x; // or just use vl53l0x; if 2018 edition is used.
// to create sensor with default configuration:
let mut lsm = VL53L0X::default(l2c, &mut delay)?;
// to get all supported measurements:
let all = marg.all()?;
println!("{:?}", all);
Number of examples can be found in proving-ground repo.
API Docs available on docs.rs.
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.