Skip to main content

Introduction

Documentation Status Discord Build Status

CircuitPython library for the ST LSM6DSOX 6-axis Accelerometer and Gyro

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-lsm6dsox

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

sudo pip3 install adafruit-circuitpython-lsm6dsox

To install in a virtual environment in your current project:

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

Usage Example

import time
import board
import busio
import adafruit_lsm6dsox

i2c = busio.I2C(board.SCL, board.SDA)

sox = adafruit_lsm6dsox.LSM6DSOX(i2c)

while True:
    print("Acceleration: X:%.2f, Y: %.2f, Z: %.2f m/s^2"%(sox.acceleration))
    print("Gyro X:%.2f, Y: %.2f, Z: %.2f degrees/s"%(sox.gyro))
    print("")
    time.sleep(0.5)

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project stay welcoming.

Documentation

For information on building library documentation, please check out this guide.

Metadata

Release files for adafruit-circuitpython-lsm6dsox 1.0.0

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-lsm6dsox 1.0.0
File Size Uploaded
adafruit-circuitpython-lsm6dsox-1.0.0.tar.gz 22.2 kB Details

Release files / adafruit-circuitpython-lsm6dsox-1.0.0.tar.gz

Download URL adafruit-circuitpython-lsm6dsox-1.0.0.tar.gz
Size 22.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1b65516a95f87c2b382ea5e50370fa33ba5a3246d8ef1da81a4b8797dbd3ffd2
BLAKE2b-256 checksum
How to use checksums
324f67d61e7c38a5c1bb72d817620559d6075084055df75f115df3cb1c5d2011
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.8.0

Release history Release notifications | RSS feed

2.0.0

1 release file

This release

1.0.0 This release

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