ak8963

Crates.ioak8963
lib.rsak8963
version1.1.0
sourcesrc
created_at2018-08-16 05:59:05.513108
updated_at2018-09-07 06:54:39.99523
descriptionLibrary for the AK8963 magnetometer.
homepage
repositoryhttps://github.com/braincore/8963-rs
max_upload_size
id79700
size11,103
Ken Elkabany (braincore)

documentation

README

AK8963 Library for Rust Latest Version Documentation

A library for the AK8963 magnetometer. Only supports the i2c interface (no SPI).

Features

  • 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.

Usage

See basic test in lib.rs or examples/scan.rs.

Testing

By default, uses i2c bus=1, addr=0x0c. To override, use these environment variables:

MS5611_I2C_BUS2=1 MS5611_I2C_ADDR=12 cargo test

Resources

Commit count: 0

cargo fmt