Skip to main content

CircuitPython library for NXP FXAS21002C gyroscope.

Project description

Introduction

Documentation Status Discord Build Status Code Style: Black

CircuitPython module for the NXP FXAS21002C gyroscope.

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

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

sudo pip3 install adafruit-circuitpython-fxas21002c

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

Usage Example

import time
import board
import adafruit_fxas21002c

i2c = board.I2C()  # uses board.SCL and board.SDA
sensor = adafruit_fxas21002c.FXAS21002C(i2c)

while True:
    gyro_x, gyro_y, gyro_z = sensor.gyroscope
    print('Gyroscope (radians/s): ({0:0.3f},  {1:0.3f},  {2:0.3f})'.format(gyro_x, gyro_y, gyro_z))
    time.sleep(1.0)

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

Built Distribution

File details

Details for the file adafruit-circuitpython-fxas21002c-2.1.17.tar.gz.

File metadata

File hashes

Hashes for adafruit-circuitpython-fxas21002c-2.1.17.tar.gz
Algorithm Hash digest
SHA256 85746f41a4ef670bcf88565537c7a19a4bf9b3693d93c90174014901207f9a35
MD5 0fbbb75c9d32b8ee38e65af72ade5b3f
BLAKE2b-256 e1452faf5c4e30f0a6f647d3d651c5b225d2b7fead0bfba4ebc92bd48ec0844f

See more details on using hashes here.

File details

Details for the file adafruit_circuitpython_fxas21002c-2.1.17-py3-none-any.whl.

File metadata

File hashes

Hashes for adafruit_circuitpython_fxas21002c-2.1.17-py3-none-any.whl
Algorithm Hash digest
SHA256 fb3e4ad452cc3328a8e1f765793e1c6c1ac5892fd41d5f9f1f4fb5c7293284d1
MD5 80bbec95bf3f55caae36278324ad7567
BLAKE2b-256 62be39f04428dcd9d9f3aa918f21c21136e5ce0d31032b58cf593e97a104ad24

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page