CircuitPython library for MMA8451 3-axis accelerometer..
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file adafruit-circuitpython-mma8451-1.3.20.tar.gz
.
File metadata
- Download URL: adafruit-circuitpython-mma8451-1.3.20.tar.gz
- Upload date:
- Size: 28.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 380b18000ffee4776eeab7c767709881a244ac7c79fc57e6eeb451ad91c017dd |
|
MD5 | 0bcbf106d0dae6293178ff8b9a09651d |
|
BLAKE2b-256 | 7914023905c982f2f4947929527c6b5af35be1abe5cbf82870b809ce038ef8ba |
File details
Details for the file adafruit_circuitpython_mma8451-1.3.20-py3-none-any.whl
.
File metadata
- Download URL: adafruit_circuitpython_mma8451-1.3.20-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66b3b9a2cf8e369f2419d1493909265ef5ce7d8fa3756321f69910ce6e4a6ba5 |
|
MD5 | f84166c84329aa218791b8b3bcafc720 |
|
BLAKE2b-256 | db9e857c33d7a86ba81cc1ad15d4e4524c71b36ade687653147ee8757b557301 |