Introduction

Documentation Status Discord

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.

Usage Example

See examples/simpletest.py for an example of the usage.

Contributing

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

API Reference

adafruit_fxas21002c

CircuitPython module for the NXP FXAS21002C gyroscope. Based on the driver from:

See examples/simpletest.py for a demo of the usage.

  • Author(s): Tony DiCola
class adafruit_fxas21002c.FXAS21002C(i2c, address=<sphinx.ext.autodoc._MockObject object>, gyro_range=250)[source]

Driver for the NXP FXAS21002C gyroscope.

gyroscope

Read the gyroscope value and return its X, Y, Z axis values as a 3-tuple in radians/second.

read_raw()[source]

Read the raw gyroscope readings. Returns a 3-tuple of X, Y, Z axis 16-bit signed values. If you want the gyroscope values in friendly units consider using the gyroscope property!