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.
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.
- Copy the unzipped adafruit_bus_device to the
lib
directory on theCIRCUITPY
orMICROPYTHON
drive.
.. toctree:: :maxdepth: 3 adafruit_bus_device/index