lsm303c
no_std driver for the lsm303c (accelerometer + magnetometer/compass).
LSM303C
;Include library as a dependency in your Cargo.toml
:
[dependencies.lsm303c]
version = "<version>"
Use embedded-hal implementation to get I2C handle and delay then create lsm303c handle:
```rust extern crate lsm303c; // or just use lsm303c; if 2018 edition is used.
// to create sensor with default configuration: let mut lsm = LSM303::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
at your option.
Started off as a fork of japaric's lsm303ldhc repo.