icm426xx - ICM-426xx 6-axis motion sensor driver in Rust
This is a platform agnostic Rust driver for the ICM-426xx 6-axis motion sensor using the embedded-hal traits.
Currently supported devices:
- ICM-42688-P
We support both the I2C and SPI interface, but currently only the SPI interface is tested. PRs are welcome!
Similarly, we support both the async and blocking interface, but currently only the async interface is tested.
Only the FIFO-based, 20-bit data mode is supported. Please open an issue if you need support for other modes.
Usage
use *; // Just for the runtime
use ;
use Mock as PinMock;
use ;
use NoopDelay as Delay;
async >;
// print WHO_AM_I register
let who_am_i = bank.who_am_i.async_read.await;
loop
}
CHANGELOG
- 0.3.2: Fixed the initialization sequence to match the datasheet.
LICENSE
MIT OR Apache-2.0