5 unstable releases
0.3.1 | Jan 29, 2020 |
---|---|
0.3.0 | Jan 25, 2020 |
0.2.2 | Feb 7, 2019 |
0.2.0 | Nov 18, 2018 |
0.1.5 | Nov 14, 2018 |
#37 in #flight
145 downloads per month
35KB
678 lines
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:
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);
More examples
Number of examples can be found in proving-ground repo.
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.
Dependencies
~110KB