bibliopixel.drivers.SPI.interfaces module

class bibliopixel.drivers.SPI.interfaces.SpiBaseInterface(dev, spi_speed)[source]

Bases: object

abstract class for different spi backends

compute_packet(data)[source]

SHOULD BE PRIVATE

error(text)[source]

SHOULD BE PRIVATE

send_packet(data)[source]

SHOULD BE PRIVATE

class bibliopixel.drivers.SPI.interfaces.SpiDummyInterface(dev, spi_speed)[source]

Bases: bibliopixel.drivers.SPI.interfaces.SpiBaseInterface

interface for testing proposal

send_packet(data)[source]

do nothing

class bibliopixel.drivers.SPI.interfaces.SpiFileInterface(**kwargs)[source]

Bases: bibliopixel.drivers.SPI.interfaces.SpiBaseInterface

using os open/write to send data

send_packet(data)[source]

SHOULD BE PRIVATE

class bibliopixel.drivers.SPI.interfaces.SpiPeripheryInterface(**kwargs)[source]

Bases: bibliopixel.drivers.SPI.interfaces.SpiBaseInterface

using python-periphery to send data

send_packet(data)[source]

SHOULD BE PRIVATE

class bibliopixel.drivers.SPI.interfaces.SpiPyDevInterface(**kwargs)[source]

Bases: bibliopixel.drivers.SPI.interfaces.SpiBaseInterface

using py-spidev to send data

send_packet(data)[source]

SHOULD BE PRIVATE