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.28.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.28.tar.gz.

File metadata

File hashes

Hashes for adafruit_circuitpython_mma8451-1.3.28.tar.gz
Algorithm Hash digest
SHA256 63c05ca61c79234b5c570044968f49937edc46285b587513b429136c1bdc7e23
MD5 c12ce2ecc771df781bf156a77ae9298f
BLAKE2b-256 565445406fa32bc8a243c911304b3e5d4de0b8ff3ea72906c439a4205bfe452d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for adafruit_circuitpython_mma8451-1.3.28-py3-none-any.whl
Algorithm Hash digest
SHA256 152e564790ae81c3c019148db2143b0e4297b67da6f3e5cb439dfa2b3460f339
MD5 5f407bfb90dd13e71d0e38d4ec018c5b
BLAKE2b-256 313e395dc49d0dd0fdf662e20daf73222e5a1ffcc3982bc8acccd8484c450662

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