Skip to main content

CircuitPython library for MMA8451 3-axis accelerometer..

Project description

Introduction

Documentation Status Discord Build Status Code Style: Ruff

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

adafruit_circuitpython_mma8451-1.3.29.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file adafruit_circuitpython_mma8451-1.3.29.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_mma8451-1.3.29.tar.gz
Algorithm Hash digest
SHA256 ada051b9109ba2960171e1ca86df199a809d7602629c5195169ee1e2bf9a9e98
MD5 f667f8bc3aa13b7c4cd1a2e0d25348f5
BLAKE2b-256 c96f8dc1a28fced8e224c9f948e76fe546ae1fbfc56e5ac88dce4a98882ce157

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_mma8451-1.3.29-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_mma8451-1.3.29-py3-none-any.whl
Algorithm Hash digest
SHA256 db6280a4b8dea77803de47419a5bb3b177d6ccedfbf2eae8c417ae2b8679f190
MD5 0fa37337852cc7a5eca8d274ddb31c5e
BLAKE2b-256 f9d3581b7312c9f0cd48fb27fa8c01172edf06913d266e767c86334ed3826b90

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page