Skip to main content

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.

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)

Source distribution for adafruit-circuitpython-mma8451 1.3.29
File Size Uploaded
adafruit_circuitpython_mma8451-1.3.29.tar.gz 25.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for adafruit-circuitpython-mma8451 1.3.29
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.3.29 This release

2 release files

1.3.28

2 release files

1.3.27

2 release files

1.3.26

2 release files

1.3.25

2 release files

1.3.24

2 release files

1.3.23

2 release files

1.3.22

2 release files

1.3.19

2 release files

1.3.18

2 release files

1.3.17

2 release files

1.3.16

2 release files

1.3.15

2 release files

1.3.13

1 release file

1.3.12

1 release file

1.3.11

1 release file

1.3.10

1 release file

1.3.9

1 release file

1.3.8

1 release file

1.3.7

1 release file

1.3.6

1 release file

1.3.5

1 release file

1.3.4

1 release file

1.3.3

1 release file

1.3.2

1 release file

1.3.1

1 release file

1.3.0

1 release file

1.2.5

1 release file

1.2.4

1 release file

1.2.3

1 release file

1.2.2

1 release file

1.2.1

1 release file

1.2.0

1 release file

1.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page