adafruit_mlx90395

CircuitPython helper library for the Melexis MLX90395 3-axis Magnetometer * Author(s): Bryan Siepert Implementation Notes ——————– Hardware: * Adafruit MLX90395 Breakout <https://www.adafruit.com/products/48XX>

Software and Dependencies: Adafruit CircuitPython firmware for the supported boards: * https://github.com/adafruit/circuitpython/releases * Adafruit’s Bus Device library: https://github.com/adafruit/Adafruit_CircuitPython_BusDevice * Adafruit’s Register library: https://github.com/adafruit/Adafruit_CircuitPython_Register

class adafruit_mlx90395.CV

struct helper

classmethod add_values(value_tuples: Iterable[Tuple[str, int, str | int, float | None]]) None

creates CV entires

classmethod is_valid(value: int) bool

Returns true if the given value is a member of the CV

class adafruit_mlx90395.Gain

Options for MLX90395.gain()

class adafruit_mlx90395.MLX90395(i2c_bus: I2C, address: int = 12)

Class for interfacing with the MLX90395 3-axis magnetometer

property gain: int

The gain applied to the magnetometer’s ADC.

initialize() None

Configure the sensor for use

property magnetic: Tuple[float, float, float]

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

property oversample_rate: int

The number of times that the measurements are re-sampled and averaged to reduce noise

reset() None

Reset the sensor to it’s power-on state

property resolution: int

The current resolution setting for the magnetometer

class adafruit_mlx90395.OSR

Options for oversample_rate

class adafruit_mlx90395.Resolution

Options for MLX90640.resolution()