Crates.io | lis2dtw12 |
lib.rs | lis2dtw12 |
version | 0.2.1 |
source | src |
created_at | 2024-09-27 12:50:11.234455 |
updated_at | 2024-12-05 10:37:20.56955 |
description | no_std library for the LIS2DTW12 dual motion and temperature sensor using embedded-hal traits |
homepage | |
repository | https://github.com/JanekGraff/lis2dtw12-rs |
max_upload_size | |
id | 1388638 |
size | 96,168 |
A platform agnostic driver to interface with the LIS2DTW12 (3-axis accelerometer + temperature sensor).
The driver uses the embedded-hal
traits and supports interfaces with I2C and SPI.
The driver supports async and blocking modes, selectable with the async
and blocking
features.
You may need to adjust the features for embassy depending on the chip you're using. This is just a configuration i was using when developing this.
The example can be run like this:
cargo run --example stm32l431-embassy-async --no-default-features --features "async"
If you have any problems feel free to open an issue, if i find the time i might review and fix it.
Also feel free to open PRs if you miss some features or find bugs. PRs for documentation, tests, examples, etc. are also very welcome!
Dual licensed under your choice of either of: