adafruit-circuitpython-fxas21002c


Nameadafruit-circuitpython-fxas21002c JSON
Version 3.0.8 PyPI version JSON
download
home_pageNone
SummaryCircuitPython library for NXP FXAS21002C gyroscope.
upload_time2025-10-20 16:41:43
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseMIT
keywords adafruit fxas21002c gyro gyroscope nxp breakout hardware micropython circuitpython
VCS
bugtrack_url
requirements Adafruit-Blinka adafruit-circuitpython-busdevice
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Introduction
============

.. image:: https://readthedocs.org/projects/adafruit-circuitpython-fxas21002c/badge/?version=latest
    :target: https://docs.circuitpython.org/projects/fxas21002c/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_FXAS21002C/workflows/Build%20CI/badge.svg
    :target: https://github.com/adafruit/Adafruit_CircuitPython_FXAS21002C/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

CircuitPython module for the NXP FXAS21002C gyroscope.

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-fxas21002c/>`_. To install for current user:

.. code-block:: shell

    pip3 install adafruit-circuitpython-fxas21002c

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

.. code-block:: shell

    sudo pip3 install adafruit-circuitpython-fxas21002c

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

Usage Example
=============

.. code-block:: python3

    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 <https://docs.circuitpython.org/projects/fxas21002c/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_fxas21002c/blob/main/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "adafruit-circuitpython-fxas21002c",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "adafruit, fxas21002c, gyro, gyroscope, nxp, breakout, hardware, micropython, circuitpython",
    "author": null,
    "author_email": "Adafruit Industries <circuitpython@adafruit.com>",
    "download_url": "https://files.pythonhosted.org/packages/69/bc/2f4a3efb1c8824108b5845d53337f09ecf1eb119e545f82d7a2ddeb7e6b9/adafruit_circuitpython_fxas21002c-3.0.8.tar.gz",
    "platform": null,
    "description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-fxas21002c/badge/?version=latest\n    :target: https://docs.circuitpython.org/projects/fxas21002c/en/latest/\n    :alt: Documentation Status\n\n.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/badges/adafruit_discord.svg\n    :target: https://adafru.it/discord\n    :alt: Discord\n\n.. image:: https://github.com/adafruit/Adafruit_CircuitPython_FXAS21002C/workflows/Build%20CI/badge.svg\n    :target: https://github.com/adafruit/Adafruit_CircuitPython_FXAS21002C/actions/\n    :alt: Build Status\n\n.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json\n    :target: https://github.com/astral-sh/ruff\n    :alt: Code Style: Ruff\n\nCircuitPython module for the NXP FXAS21002C gyroscope.\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython <https://github.com/adafruit/circuitpython>`_\n* `Bus Device <https://github.com/adafruit/Adafruit_CircuitPython_BusDevice>`_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle <https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.\n\nInstalling from PyPI\n=====================\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from\nPyPI <https://pypi.org/project/adafruit-circuitpython-fxas21002c/>`_. To install for current user:\n\n.. code-block:: shell\n\n    pip3 install adafruit-circuitpython-fxas21002c\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n    sudo pip3 install adafruit-circuitpython-fxas21002c\n\nTo install in a virtual environment in your current project:\n\n.. code-block:: shell\n\n    mkdir project-name && cd project-name\n    python3 -m venv .venv\n    source .venv/bin/activate\n    pip3 install adafruit-circuitpython-fxas21002c\n\nUsage Example\n=============\n\n.. code-block:: python3\n\n    import time\n    import board\n    import adafruit_fxas21002c\n\n    i2c = board.I2C()  # uses board.SCL and board.SDA\n    sensor = adafruit_fxas21002c.FXAS21002C(i2c)\n\n    while True:\n        gyro_x, gyro_y, gyro_z = sensor.gyroscope\n        print('Gyroscope (radians/s): ({0:0.3f},  {1:0.3f},  {2:0.3f})'.format(gyro_x, gyro_y, gyro_z))\n        time.sleep(1.0)\n\n\nDocumentation\n=============\n\nAPI documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/fxas21002c/en/latest/>`_.\n\nFor 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>`_.\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n<https://github.com/adafruit/Adafruit_CircuitPython_fxas21002c/blob/main/CODE_OF_CONDUCT.md>`_\nbefore contributing to help this project stay welcoming.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "CircuitPython library for NXP FXAS21002C gyroscope.",
    "version": "3.0.8",
    "project_urls": {
        "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_FXAS21002C"
    },
    "split_keywords": [
        "adafruit",
        " fxas21002c",
        " gyro",
        " gyroscope",
        " nxp",
        " breakout",
        " hardware",
        " micropython",
        " circuitpython"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "18bebba213e73c25c8c7556185f0a78aa3bccd868d9d2e07b5e629f19b1f8baf",
                "md5": "3ab4aca87caf97229d2afbb291151717",
                "sha256": "45b8ff216b53d598ae9bd7dbe8610875222dab985882869c72d1ec135c00db49"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_fxas21002c-3.0.8-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "3ab4aca87caf97229d2afbb291151717",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6254,
            "upload_time": "2025-10-20T16:41:43",
            "upload_time_iso_8601": "2025-10-20T16:41:43.088021Z",
            "url": "https://files.pythonhosted.org/packages/18/be/bba213e73c25c8c7556185f0a78aa3bccd868d9d2e07b5e629f19b1f8baf/adafruit_circuitpython_fxas21002c-3.0.8-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "69bc2f4a3efb1c8824108b5845d53337f09ecf1eb119e545f82d7a2ddeb7e6b9",
                "md5": "4ceb1be456f51618c4dc022c2596e1fc",
                "sha256": "6b7001b921670590dbb3d0f00d87bb7493562a020d0227db07a5a1ced2a57f39"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_fxas21002c-3.0.8.tar.gz",
            "has_sig": false,
            "md5_digest": "4ceb1be456f51618c4dc022c2596e1fc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 24086,
            "upload_time": "2025-10-20T16:41:43",
            "upload_time_iso_8601": "2025-10-20T16:41:43.818772Z",
            "url": "https://files.pythonhosted.org/packages/69/bc/2f4a3efb1c8824108b5845d53337f09ecf1eb119e545f82d7a2ddeb7e6b9/adafruit_circuitpython_fxas21002c-3.0.8.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-20 16:41:43",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "adafruit",
    "github_project": "Adafruit_CircuitPython_FXAS21002C",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "Adafruit-Blinka",
            "specs": []
        },
        {
            "name": "adafruit-circuitpython-busdevice",
            "specs": [
                [
                    ">=",
                    "2.2.5"
                ]
            ]
        }
    ],
    "lcname": "adafruit-circuitpython-fxas21002c"
}
        
Elapsed time: 2.80220s