Skip to main content

Introduction

Documentation Status Discord Build Status Code Style: Ruff

CircuitPython helper library for using the Adafruit MLX90395 tri-Axis magnetometer breakout

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle.

Installing from PyPI

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally from PyPI. To install for current user:

pip3 install adafruit-circuitpython-mlx90395

To install system-wide (this may be required in some cases):

sudo pip3 install adafruit-circuitpython-mlx90395

To install in a virtual environment in your current project:

mkdir project-name && cd project-name
python3 -m venv .venv
source .venv/bin/activate
pip3 install adafruit-circuitpython-mlx90395

Usage Example

from time import sleep
import board
import busio
from adafruit_mlx90395 import MLX90395, OSR

i2c = busio.I2C(board.SCL, board.SDA)
sensor = MLX90395(i2c)
while True:
    mag_x, mag_y, mag_z = sensor.magnetic

    print("X1:{0:10.2f}, Y:{1:10.2f}, Z:{2:10.2f} uT".format(mag_x, mag_y, mag_z))
    print("")

    sleep(0.5)

Documentation

API documentation for this library can be found on Read the Docs.

For information on building library documentation, please check out this guide.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Metadata

Release files for adafruit-circuitpython-mlx90395 1.0.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for adafruit-circuitpython-mlx90395 1.0.20
File Size Uploaded
adafruit_circuitpython_mlx90395-1.0.20.tar.gz 24.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adafruit-circuitpython-mlx90395 1.0.20
File Interpreter ABI Platform
adafruit_circuitpython_mlx90395-1.0.20-py3-none-any.whl Python 3 none any Details

Total release size: 31.1 kB

Release files / adafruit_circuitpython_mlx90395-1.0.20.tar.gz

Download URL adafruit_circuitpython_mlx90395-1.0.20.tar.gz
Size 24.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8c389963b93933d503a2ab8aaacb9bbacf4f71334b6f4f9d37944bf1d6624140
BLAKE2b-256 checksum
How to use checksums
a376e687a3cc7e6d99f999e17e75b17ccdc7f8b323f99880fbf81b963d9bf631
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / adafruit_circuitpython_mlx90395-1.0.20-py3-none-any.whl

Download URL adafruit_circuitpython_mlx90395-1.0.20-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be95e49027cad3dcb146c8d7dc9dbb3b46f57ea0266ddcb13351c432ada6312d
BLAKE2b-256 checksum
How to use checksums
40cd72434af50f4657a1767ff1d5a8cc97fb099206cb7970ceb701291f0146f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release history Release notifications | RSS feed

This release

1.0.20 This release

2 release files

1.0.19

2 release files

1.0.18

2 release files

1.0.17

2 release files

1.0.16

2 release files

1.0.15

2 release files

1.0.12

2 release files

1.0.11

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page