adafruit-circuitpython-bno055


Nameadafruit-circuitpython-bno055 JSON
Version 5.4.12 PyPI version JSON
download
home_page
SummaryCircuitPython library for BNO055 9-DOF absolute orientation sensor.
upload_time2023-10-30 21:14:59
maintainer
docs_urlNone
author
requires_python
licenseMIT
keywords adafruit 9-dof absolute orientation accelerometer velocity temperature gravitymagnetic breakout hardware micropython circuitpython
VCS
bugtrack_url
requirements Adafruit-Blinka adafruit-circuitpython-register adafruit-circuitpython-busdevice
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Introduction
============

.. image:: https://readthedocs.org/projects/adafruit-circuitpython-bno055/badge/?version=latest
    :target: https://docs.circuitpython.org/projects/bno055/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_BNO055/workflows/Build%20CI/badge.svg
    :target: https://github.com/adafruit/Adafruit_CircuitPython_BNO055/actions/
    :alt: Build Status

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/psf/black
    :alt: Code Style: Black


Dependencies
=============

This driver depends on the `Register
<https://github.com/adafruit/Adafruit_CircuitPython_Register>`_ and `Bus Device
<https://github.com/adafruit/Adafruit_CircuitPython_BusDevice>`_ libraries.
Please ensure they are also available on the CircuitPython filesystem.  This is
easily achieved by downloading `a 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-bno055/>`_. To install for current user:

.. code-block:: shell

    pip3 install adafruit-circuitpython-bno055

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

.. code-block:: shell

    sudo pip3 install adafruit-circuitpython-bno055

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

Usage Notes
===========

Of course, you must import the library to use it:

.. code:: python3

    import adafruit_bno055


This driver takes an instantiated and active I2C object as an argument to its
constructor.  The way to create an I2C object depends on the board you are
using. For boards with labeled SCL and SDA pins, you can:

.. code:: python3

    import board

    i2c = board.I2C()

Once you have the I2C object, you can create the sensor object:

.. code:: python3

    sensor = adafruit_bno055.BNO055_I2C(i2c)


And then you can start reading the measurements:

.. code:: python3

    print(sensor.temperature)
    print(sensor.euler)
    print(sensor.gravity)


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

API documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/bno055/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_bno055/blob/main/CODE_OF_CONDUCT.md>`_
before contributing to help this project stay welcoming.

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "adafruit-circuitpython-bno055",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "adafruit,9-dof,absolute,orientation,accelerometer,velocity,temperature,gravitymagnetic,breakout,hardware,micropython,circuitpython",
    "author": "",
    "author_email": "Adafruit Industries <circuitpython@adafruit.com>",
    "download_url": "https://files.pythonhosted.org/packages/47/2f/8bb9f85b3a770bae63b7d9e117e9994b0e0d2c711aea46c0bd700aa714d6/adafruit-circuitpython-bno055-5.4.12.tar.gz",
    "platform": null,
    "description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-bno055/badge/?version=latest\n    :target: https://docs.circuitpython.org/projects/bno055/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_BNO055/workflows/Build%20CI/badge.svg\n    :target: https://github.com/adafruit/Adafruit_CircuitPython_BNO055/actions/\n    :alt: Build Status\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n    :target: https://github.com/psf/black\n    :alt: Code Style: Black\n\n\nDependencies\n=============\n\nThis driver depends on the `Register\n<https://github.com/adafruit/Adafruit_CircuitPython_Register>`_ and `Bus Device\n<https://github.com/adafruit/Adafruit_CircuitPython_BusDevice>`_ libraries.\nPlease ensure they are also available on the CircuitPython filesystem.  This is\neasily achieved by downloading `a library and driver bundle\n<https://github.com/adafruit/Adafruit_CircuitPython_Bundle>`_.\n\nInstalling from PyPI\n====================\n\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from\nPyPI <https://pypi.org/project/adafruit-circuitpython-bno055/>`_. To install for current user:\n\n.. code-block:: shell\n\n    pip3 install adafruit-circuitpython-bno055\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n    sudo pip3 install adafruit-circuitpython-bno055\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-bno055\n\nUsage Notes\n===========\n\nOf course, you must import the library to use it:\n\n.. code:: python3\n\n    import adafruit_bno055\n\n\nThis driver takes an instantiated and active I2C object as an argument to its\nconstructor.  The way to create an I2C object depends on the board you are\nusing. For boards with labeled SCL and SDA pins, you can:\n\n.. code:: python3\n\n    import board\n\n    i2c = board.I2C()\n\nOnce you have the I2C object, you can create the sensor object:\n\n.. code:: python3\n\n    sensor = adafruit_bno055.BNO055_I2C(i2c)\n\n\nAnd then you can start reading the measurements:\n\n.. code:: python3\n\n    print(sensor.temperature)\n    print(sensor.euler)\n    print(sensor.gravity)\n\n\nDocumentation\n=============\n\nAPI documentation for this library can be found on `Read the Docs <https://docs.circuitpython.org/projects/bno055/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_bno055/blob/main/CODE_OF_CONDUCT.md>`_\nbefore contributing to help this project stay welcoming.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "CircuitPython library for BNO055 9-DOF absolute orientation sensor.",
    "version": "5.4.12",
    "project_urls": {
        "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_BNO055"
    },
    "split_keywords": [
        "adafruit",
        "9-dof",
        "absolute",
        "orientation",
        "accelerometer",
        "velocity",
        "temperature",
        "gravitymagnetic",
        "breakout",
        "hardware",
        "micropython",
        "circuitpython"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "819dba3c6abce2da44a101674c9daab9dd79ec5ad9d2c04bcf60903221201c89",
                "md5": "50eee1f0f785bb42ee43b1fa95760470",
                "sha256": "039ba693ec3b690032cad42816f873e930adc9aec0538a8814697984e96cc17d"
            },
            "downloads": -1,
            "filename": "adafruit_circuitpython_bno055-5.4.12-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "50eee1f0f785bb42ee43b1fa95760470",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 10701,
            "upload_time": "2023-10-30T21:14:56",
            "upload_time_iso_8601": "2023-10-30T21:14:56.728195Z",
            "url": "https://files.pythonhosted.org/packages/81/9d/ba3c6abce2da44a101674c9daab9dd79ec5ad9d2c04bcf60903221201c89/adafruit_circuitpython_bno055-5.4.12-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "472f8bb9f85b3a770bae63b7d9e117e9994b0e0d2c711aea46c0bd700aa714d6",
                "md5": "d090a4d14141d9a2e1d6497c5f4d7b7a",
                "sha256": "002a1572aa6104a8e5bd3a59dd6f83163e25c8275800e323995e1e5139cd75a8"
            },
            "downloads": -1,
            "filename": "adafruit-circuitpython-bno055-5.4.12.tar.gz",
            "has_sig": false,
            "md5_digest": "d090a4d14141d9a2e1d6497c5f4d7b7a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 2194475,
            "upload_time": "2023-10-30T21:14:59",
            "upload_time_iso_8601": "2023-10-30T21:14:59.137773Z",
            "url": "https://files.pythonhosted.org/packages/47/2f/8bb9f85b3a770bae63b7d9e117e9994b0e0d2c711aea46c0bd700aa714d6/adafruit-circuitpython-bno055-5.4.12.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-30 21:14:59",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "adafruit",
    "github_project": "Adafruit_CircuitPython_BNO055",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [
        {
            "name": "Adafruit-Blinka",
            "specs": []
        },
        {
            "name": "adafruit-circuitpython-register",
            "specs": []
        },
        {
            "name": "adafruit-circuitpython-busdevice",
            "specs": []
        }
    ],
    "lcname": "adafruit-circuitpython-bno055"
}
        
Elapsed time: 0.15307s