Skip to content

Two helper classes that handle transaction related state for I2C and SPI including locks.

License

Notifications You must be signed in to change notification settings

robomike/Adafruit_CircuitPython_BusDevice

 
 

Repository files navigation

Adafruit CircuitPython BusDevice

Documentation Status

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.

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:

  1. Download and unzip the latest release zip.
  2. Copy the unzipped adafruit_bus_device to the lib directory on the CIRCUITPY or MICROPYTHON drive.

API

.. toctree::
    :maxdepth: 3

    adafruit_bus_device/index

About

Two helper classes that handle transaction related state for I2C and SPI including locks.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%