LIS2DH
Driver crate for the ST LIS2DH12 accelerometer. Compatible with embedded-hal and embedded-hal-async traits.
Example usage
let mut accelerometer = new;
accelerometer.set_mode.await.unwrap;
accelerometer.set_output_data_rate.await.unwrap;
accelerometer.configure_int1.await.unwrap;
accelerometer.configure_fifo.await.unwrap;
let mut data = ;
loop
Resources
License
This work is 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.