GithubHelp home page GithubHelp logo

petercalifano / adafruit_circuitpython_bno055_petercdev Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adafruit/adafruit_circuitpython_bno055

0.0 0.0 0.0 3.03 MB

CircuitPython driver for BNO055 absolute orientation sensor - forked by PeterC

License: MIT License

Python 100.00%

adafruit_circuitpython_bno055_petercdev's Introduction

Introduction

Documentation Status

Discord

Build Status

Code Style: Black

Dependencies

This driver depends on the Register and Bus Device libraries. Please ensure they are also available on the CircuitPython filesystem. This is easily achieved by downloading a 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-bno055

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

sudo pip3 install adafruit-circuitpython-bno055

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

Usage Notes

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

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:

import board

i2c = board.I2C()

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

sensor = adafruit_bno055.BNO055_I2C(i2c)

And then you can start reading the measurements:

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

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.

adafruit_circuitpython_bno055_petercdev's People

Contributors

brennen avatar caternuson avatar cedargrovestudios avatar davidskeck avatar deshipu avatar dhalbert avatar evaherrada avatar foamyguy avatar gamblor21 avatar guenterq avatar jposada202020 avatar katlings avatar kattni avatar ladyada avatar markus-k avatar mrmcwethy avatar petercalifano avatar peterhinch avatar pjjefferies avatar russmac avatar siddacious avatar sjirwin avatar sommersoft avatar tannewt avatar tcfranks avatar tdicola avatar tekktrik avatar viennamike avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.