Skip to main content

CircuitPython library for MMA8451 3-axis accelerometer..

Project description

Introduction

Documentation Status Discord Build Status Code Style: Black

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.14.tar.gz (29.5 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.14.tar.gz.

File metadata

File hashes

Hashes for adafruit-circuitpython-mma8451-1.3.14.tar.gz
Algorithm Hash digest
SHA256 5bd59167db908fd2dad4f08bd36af4930006f557e095f87648ce08dc6cc881f1
MD5 efc4bd0a272a1b50d0aa024741ebfef2
BLAKE2b-256 52041a12e2c22e04d5702ce526672d483f8bf06be76f0cb53bf5b94a2fa43681

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_mma8451-1.3.14-py3-none-any.whl
Algorithm Hash digest
SHA256 cac0aed7b18b48c1b3a3b7d615e703e3c54567616c83b5d2999eb8a4fea4b66b
MD5 ea2090b3f6530ba4d19979891dbcd145
BLAKE2b-256 081b66cf854d8b897f67720416b344ea9cef46506d7b303c0273d5947eeabb54

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