adafruit_extended_bus

Helper Library for Blinka to allow creating I2C and SPI busio objects by passing in the Bus ID. This library is not compatible with CircuitPython and is intended to only be run on Linux devices.

  • Author(s): Melissa LeBlanc-Williams

class adafruit_extended_bus.ExtendedI2C(*args: Any, **kwargs: Any)

Extended I2C is a busio extension that allows creating a compatible I2C object using the Bus ID number. The bus ID is the number at the end of /dev/i2c-# and you can find which I2C devices you have by typing ls /dev/i2c*

class adafruit_extended_bus.ExtendedSPI(*args: Any, **kwargs: Any)

Extended SPI is a busio extension that allows creating a compatible SPI object using the Bus ID number. The bus ID is the numbers at the end of /dev/spidev#.# and you can find which SPI devices you have by typing ls /dev/spi*

class Pin(id)

Fake Pin class