adafruit_lsm303

CircuitPython driver for the LSM303 accelerometer + magnetometer.

  • Author(s): Dave Astels

Implementation Notes

Hardware:

Software and Dependencies:

class adafruit_lsm303.LSM303(i2c)[source]

Driver for the LSM303 accelerometer/magnetometer.

acceleration

The processed accelerometer sensor values. A 3-tuple of X, Y, Z axis values in meters per second squared that are signed floats.

mag_gain

The magnetometer’s gain.

mag_rate

The magnetometer update rate.

magnetic

The processed magnetometer sensor values. A 3-tuple of X, Y, Z axis values in microteslas that are signed floats.

raw_acceleration

The raw accelerometer sensor values. A 3-tuple of X, Y, Z axis values that are 16-bit signed integers.

raw_magnetic

The raw magnetometer sensor values. A 3-tuple of X, Y, Z axis values that are 16-bit signed integers.