Catalog PyPI
Back to packageRELEASE DETAILS

1.12.20

PyPI

adafruit-circuitpython-adxl34x

A CircuitPython driver for the ADXL34x family of accelerometers.

accelerationaccelerometeradafruitaxismicropythoncircuitpythonhardwarei2cspitriple
Published23 Apr 2026
Direct dependencies2
Transitive dependenciesNot calculated

README

Version 1.12.20 documentation
Introduction
============

.. image:: https://readthedocs.org/projects/adafruit-circuitpython-adxl34x/badge/?version=latest
    :target: https://docs.circuitpython.org/projects/adxl34x/en/latest/
    :alt: Documentation Status

.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg
    :target: https://adafru.it/discord
    :alt: Discord

.. image:: https://github.com/adafruit/Adafruit_CircuitPython_ADXL34x/workflows/Build%20CI/badge.svg
    :target: https://github.com/adafruit/Adafruit_CircuitPython_ADXL34x/actions/
    :alt: Build Status

.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json
    :target: https://github.com/astral-sh/ruff
    :alt: Code Style: Ruff

A CircuitPython driver for the ADXL34x family of accelerometers

Dependencies
=============
This driver depends on:

* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_
* `Bus Device <https://github.com/adafruit/Adafruit_CircuitPython_BusDevice>`_

Please ensure all dependencies are available on the CircuitPython filesystem.
This is easily achieved by downloading
`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.

Installing from PyPI
--------------------

On supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from
PyPI <https://pypi.org/project/adafruit-circuitpython-adxl34x/>`_. To install for current user:

.. code-block:: shell

    pip3 install adafruit-circuitpython-adxl34x

To install system-wide (this may be required in some cases):

.. code-block:: shell

    sudo pip3 install adafruit-circuitpython-adxl34x

To install in a virtual environment in your current project:

.. code-block:: shell

    mkdir project-name && cd project-name
    python3 -m venv .venv
    source .venv/bin/activate
    pip3 install adafruit-circuitpython-adxl34x

Usage Example
=============
.. code:: python3

    import time
    import board
    import adafruit_adxl34x

    i2c = board.I2C()  # uses board.SCL and board.SDA
    accelerometer = adafruit_adxl34x.ADXL345(i2c)

    while True:
        print("%f %f %f"%accelerometer.acceleration)
        time.sleep(1)

Documentation
=============

API documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/adxl34x/en/latest/>`_.

For information on building library documentation, please check out `this guide <https://learn.adafruit.com/creating-and-sharing-a-circuitpython-library/sharing-our-docs-on-readthedocs#sphinx-5-1>`_.

Contributing
============

Contributions are welcome! Please read our `Code of Conduct
<https://github.com/adafruit/Adafruit_CircuitPython_ADXL34x/blob/main/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 2

Native requirements
2 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
Adafruit-Blinka
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": "",
  "evaluation": "NOT_EVALUATED"
}
Adafruit-Blinkaruntime
adafruit-circuitpython-busdevice
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": "",
  "evaluation": "NOT_EVALUATED"
}
adafruit-circuitpython-busdeviceruntime

Distribution files

2 collected
adafruit_circuitpython_adxl34x-1.12.20-py3-none-any.whl

bdist_wheel · 7.85 KB · Python py3

Source file
adafruit_circuitpython_adxl34x-1.12.20.tar.gz

sdist · 27.14 KB · Python source

Source file

Repository

ACCESSIBLE
adafruit/adafruit_circuitpython_adxl34x

Shared repository data · GitHub

License detected in repository
MIT
License branch / ref
main
Last push
23 Apr 2026
Archived
No
Contributor identities
— · partial collection

Public sponsor counts have not been collected. These signals belong to the repository owner.

Downloads & popularity

14count
Gauge · observed snapshots21 Oct 2026
1470
2026-10-21: 14 · observed 2026-10-21T12:47:11.1292194Z
21 Oct21 Oct

github · 1 observations shown. Missing days are unknown.

View observed values
Date / source periodValueObserved at
2026-10-21142026-10-21T12:47:11.1292194Z

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:47 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:eb60dec4d32304cb457fbd4319292bdec6802232acab7f3c08f1edd3d27c2d21

Other collected versions

View all collected versions →