bibliopixel.drivers.SPI.base module

class bibliopixel.drivers.SPI.base.SPIBase(num, dev='/dev/spidev0.0', spi_interface=None, spi_speed=1, interface=None, **kwargs)[source]

Bases: bibliopixel.drivers.driver_base.DriverBase

Base driver for controling SPI devices on systems like the Raspberry Pi
and BeagleBone

Provides the same parameters of bibliopixel.drivers.driver_base.DriverBase as well as those below:

Parameters:
  • dev (str) – SPI device path
  • spi_interface (str) – Interface API with which to connect to the SPI device. One of bibliopixel.drivers.spi_interfaces.SPI_INTERFACES
  • spi_speed (int) – Output data rate, in MHz
  • interface – DEPRECATED - Use spi_interface