A driver for the NXP MAG3110 magnetometer
This driver was built using embedded-hal traits.
embedded-hal
You should find at least one example in the microbit crate.