No description
Find a file
2018-03-05 17:37:43 -06:00
adafruit_bus_device setup docs folder 2018-03-05 17:37:43 -06:00
docs setup docs folder 2018-03-05 17:37:43 -06:00
examples added examples folder and two example .py 2018-01-09 08:04:14 -07:00
.gitignore Update to new build process and turn on lint. 2017-12-08 12:08:08 -08:00
.pylintrc Update to new build process and turn on lint. 2017-12-08 12:08:08 -08:00
.travis.yml Use newer build tools package. 2017-12-11 18:07:32 -08:00
CODE_OF_CONDUCT.md First version of I2CDevice 2016-12-01 18:34:46 -08:00
LICENSE First version of I2CDevice 2016-12-01 18:34:46 -08:00
README.rst Update to new build process and turn on lint. 2017-12-08 12:08:08 -08:00
readthedocs.yml Update to new build process and turn on lint. 2017-12-08 12:08:08 -08:00
setup.py Polish the docs for ReadTheDocs 2017-01-05 17:44:19 -08:00

Adafruit CircuitPython BusDevice
================================

.. image:: https://readthedocs.org/projects/adafruit-circuitpython-busdevice/badge/?version=latest
    :target: https://circuitpython.readthedocs.io/projects/bus_device/en/latest/
    :alt: Documentation Status

.. image :: https://img.shields.io/discord/327254708534116352.svg
    :target: https://adafru.it/discord
    :alt: Discord

The `I2CDevice` and `SPIDevice` helper classes make managing transaction state
on a bus easy. For example, they manage locking the bus to prevent other
concurrent access. For SPI devices, it manages the chip select and protocol
changes such as mode. For I2C, it manages the device address.

.. _bus_device_installation:

Installation
-------------

This library is **NOT** built into CircuitPython to make it easy to update. To
install it either follow the directions below or :ref:`install the library
bundle <bundle_installation>`.

To install:

#. Download and unzip the `latest release zip <https://github.com/adafruit/Adafruit_CircuitPython_BusDevice/releases>`_.
#. Copy the unzipped ``adafruit_bus_device`` to the ``lib`` directory on the ``CIRCUITPY`` drive.

API
---
.. toctree::
    :maxdepth: 3

    adafruit_bus_device/index