#accelerometer #interrupt #adxl345 #analog-devices #i2c #embedded-hal

adxl345-eh-driver

Rust embedded-hal device driver for the ADXL345 Analog Devices Digital Accelerometer

3 unstable releases

new 0.2.1 Apr 28, 2024
0.2.0 Jan 11, 2024
0.1.0 Jul 7, 2023

#774 in Hardware support

MIT license

12KB
224 lines

ADXL345 Accelerometer

A Rust device driver for the ADXL345 Analog Devices Digital Accelerometer.

Usage

    let mut accel = adxl345_eh_driver::Driver::new(i2c, None).unwrap();
    let (x, y, z) = accel.get_accel_raw().unwrap();

License

license

This tool is released under the MIT license, hence allowing commercial use of the library. Please refer to the LICENSE file.

Dependencies

~96KB