#embedded-hal-driver #range #distance #time-fo-flight

no-std vl53l0x

A platform agnostic driver to interface with the vl53l0x (time-to-flight sensor)

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

Download history 13/week @ 2023-11-04 11/week @ 2023-11-11 18/week @ 2023-11-18 27/week @ 2023-11-25 15/week @ 2023-12-02 20/week @ 2023-12-09 13/week @ 2023-12-16 22/week @ 2023-12-23 4/week @ 2023-12-30 19/week @ 2024-01-06 15/week @ 2024-01-13 14/week @ 2024-01-20 21/week @ 2024-01-27 5/week @ 2024-02-03 32/week @ 2024-02-10 87/week @ 2024-02-17

145 downloads per month

MIT license

35KB
678 lines

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.

Dependencies

~110KB