# `lis331-rs` [![Crate][crate-image]][crate-link] [![Docs][docs-image]][docs-link] ![MIT licensed][license-image] Platform-agnostic Rust driver for the ST LIS331 (DLH, HH) 3-axis MEMS "nano" accelerometer. ## Resources - [LIS331HH product page][product-page] - [LIS331HH datasheet][datasheet] ### Examples Examples are built for ESP32-C3. - [Hello World](examples/hello-world.rs) ## License Dual licensed under your choice of either of: - Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) - MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) ### Contribution Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions. [crate-image]: https://img.shields.io/crates/v/lis331.svg [crate-link]: https://crates.io/crates/lis331 [docs-image]: https://docs.rs/lis331/badge.svg [docs-link]: https://docs.rs/lis331/ [license-image]: https://img.shields.io/badge/license-Apache2.0/MIT-blue.svg [product-page]: https://www.st.com/en/mems-and-sensors/lis331dlh.html [datasheet]: https://www.st.com/resource/en/datasheet/lis331dlh.pdf