This is a breakout for the Adafruit MLX90393 magnetometer sensor breakout.
- Author(s): ktown
- Adafruit MLX90393 Magnetometer Sensor Breakout Board (Product ID: 4022)
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
MLX90393(i2c_bus, address=12, gain=7, debug=False)¶
Driver for the MLX90393 magnetometer. :param i2c_bus: The
busio.I2Cobject to use. This is the only required parameter. :param int address: (optional) The I2C address of the device. :param int gain: (optional) The gain level to apply. :param bool debug: (optional) Enable debug output.
Prints out the content of the last status byte in a human-readble format.
Gets the current gain setting for the device.
Returns the last status byte received from the sensor.
Reads a single X/Y/Z sample from the magnetometer.
Performs a software reset of the sensor.