A library for the AK8963 magnetometer. Only supports the i2c interface (no SPI).
- Reads the sensitivity adjustment values from the Fuse ROM and applies them.
- Adjustable sensitivity and continuous measurement rate.
- Exposes data-not-ready, data overrun, and magnetic saturation cases.
See basic test in lib.rs
or examples/scan.rs
.
By default, uses i2c bus=1, addr=0x0c. To override, use these environment variables:
MS5611_I2C_BUS2=1 MS5611_I2C_ADDR=12 cargo test