Skip to main content

MicroPython Library

The bmm350 module talks to the breakout over I2C. Create a BMM350 object with your I2C bus: the constructor sets the sensor up at 100 Hz with 4-sample averaging, all three axes enabled and normal mode, and raises an exception when the sensor cannot be reached. get_sensor_data() then fills sensor.data with compensated readings in µT.

Not installed yet? Follow Quick Start before using the functionality pages.

Functionality​

Each page starts with one verified example and explains every function the example uses to get that result.