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": null,
"name": "adafruit-circuitpython-bno055",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "adafruit, 9-dof, absolute, orientation, accelerometer, velocity, temperature, gravitymagnetic, breakout, hardware, micropython, circuitpython",
"author": null,
"author_email": "Adafruit Industries <circuitpython@adafruit.com>",
"download_url": "https://files.pythonhosted.org/packages/48/12/4244f190fadd4a00aac11266143b191d4ad4976cafd39ae26e882952c7e0/adafruit_circuitpython_bno055-5.4.15.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.15",
"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": "f0af14122b8fdd85326d966e8a51074ee31aadac38c44e2840b06fd7ebdd1a3f",
"md5": "8d2367862240db7490270d0052d7953b",
"sha256": "8df0b295684c25e032791b415546c73f43ad3fbb2a8a5a69be8bc5820bb2c78a"
},
"downloads": -1,
"filename": "adafruit_circuitpython_bno055-5.4.15-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8d2367862240db7490270d0052d7953b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 10706,
"upload_time": "2024-11-13T21:44:26",
"upload_time_iso_8601": "2024-11-13T21:44:26.607583Z",
"url": "https://files.pythonhosted.org/packages/f0/af/14122b8fdd85326d966e8a51074ee31aadac38c44e2840b06fd7ebdd1a3f/adafruit_circuitpython_bno055-5.4.15-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "48124244f190fadd4a00aac11266143b191d4ad4976cafd39ae26e882952c7e0",
"md5": "83394c9b0f28c1e1878ddf8bd18f85d1",
"sha256": "3cba6cbe0e6e0b9854de8e244d7c14115bfd8c708d2a1442573677e7fb3c154d"
},
"downloads": -1,
"filename": "adafruit_circuitpython_bno055-5.4.15.tar.gz",
"has_sig": false,
"md5_digest": "83394c9b0f28c1e1878ddf8bd18f85d1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2194441,
"upload_time": "2024-11-13T21:44:28",
"upload_time_iso_8601": "2024-11-13T21:44:28.795695Z",
"url": "https://files.pythonhosted.org/packages/48/12/4244f190fadd4a00aac11266143b191d4ad4976cafd39ae26e882952c7e0/adafruit_circuitpython_bno055-5.4.15.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-13 21:44:28",
"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"
}