/vl53l0x

vl53l0x

Primary LanguageRustOtherNOASSERTION

vl53l0x

no_std driver for the vl53l0x vl53l0x (Time of Flight IR distance sensor).

Build Status

What works

  • To be tested

Supported chips

  • VL53L0X;

Basic usage

Include library as a dependency in your Cargo.toml crates.io:

[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

at your option.