Introduction
CircuitPython module for the MMA8451 3 axis accelerometer.
Note: Older versions of the Raspberry Pi firmware do not have I2C clock stretching support so they don’t work well with the MMA. Please ensure your firmware is updated to the latest version before continuing and slow down the I2C as explained here: https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/i2c-clock-stretching
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-mma8451
To install system-wide (this may be required in some cases):
sudo pip3 install adafruit-circuitpython-mma8451
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-mma8451
Usage Example
See examples/simpletest.py for a demo of the usage.
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-mma8451 1.3.29
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| adafruit_circuitpython_mma8451-1.3.29.tar.gz | 25.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| adafruit_circuitpython_mma8451-1.3.29-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.1 kB
Release files / adafruit_circuitpython_mma8451-1.3.29.tar.gz
| Download URL | adafruit_circuitpython_mma8451-1.3.29.tar.gz |
|---|---|
| Size | 25.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ada051b9109ba2960171e1ca86df199a809d7602629c5195169ee1e2bf9a9e98
|
|
BLAKE2b-256 checksum How to use checksums |
c96f8dc1a28fced8e224c9f948e76fe546ae1fbfc56e5ac88dce4a98882ce157
|
| 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_mma8451-1.3.29-py3-none-any.whl
| Download URL | adafruit_circuitpython_mma8451-1.3.29-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db6280a4b8dea77803de47419a5bb3b177d6ccedfbf2eae8c417ae2b8679f190
|
|
BLAKE2b-256 checksum How to use checksums |
f9d3581b7312c9f0cd48fb27fa8c01172edf06913d266e767c86334ed3826b90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.15
|