How adafruit/adafruit_circuitpython_bno055 works
Project type and purpose
• This is an open-source CircuitPython driver library for the Bosch BNO055 IMU sensor.
• It provides a Python API to configure the sensor, read orientation, temperature, gravity, etc., on boards running CircuitPython or CPython on Linux (e.g., Raspberry Pi).
• The project also contains examples (CLI scripts and a WebGL demo) and supporting documentation, CI configuration, and packaging workflows.
File structure
Top-level:
• adafruit_bno055.py – main driver module implementing the BNO055 API
• optional_requirements.txt, requirements.txt, pyproject.toml – dependency declarations for PyPI packaging
• .github/workflows – CI/CD pipelines for building, testing, releasing to GitHub and PyPI
• docs/ – Sphinx documentation source (conf.py, .rst files)
• examples/ – application code that consumes the driver
– simple Python scripts (calibrator, compass mode, simpletest)
README for additional insights
• Dependencies: Adafruit_CircuitPython_Register, Adafruit_CircuitPython_BusDevice
• Usage: instantiate I2C bus via board.I2C(), then create BNO055_I2C object, then read properties
• Documentation hosted on ReadTheDocs
• Packaging on PyPI, build via GitHub Actions