Skip to main content

MicroPython Library

The bma400 module talks to the breakout over I2C. It is a port of the Soldered BMA400 Arduino library. You create a BMA400 object with your machine.I2C bus, read the acceleration with get_sensor_data(), and use the same object for the step counter and the chip's interrupts. The constructor raises an exception when the sensor does not answer; every other method stores its result in sensor.status instead, which status_string() turns into text.

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

Functionality​

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