LPD8806

Tom Ritchford edited this page May 13, 2017 · 1 revision

class bibliopixel.drivers.LPD8806.LPD8806

LPD8806 is for controlling LPD8806 strips on devices that have hardware SPI ports, like the Raspberry Pi or BeagleBone Black. The majority of its implementation and properties exist in DriverSPIBase. See SPI Setup for more details.

Note: SPI devices typically require root access in order to write to the SPI port. Any scripts using this class should be run with sudo.

__init__

(num, c_order = ChannelOrder.RGB, use_py_spi = True, dev="/dev/spidev0.0", SPISpeed = 16)

  • num - Number of pixels to be controlled.
  • c_order - Optional: Channel order used by the attached display. Can be any of the six options in the ChannelOrder class. See Channel Order for more details.
  • use_py_spi - If True, SPI communication is handled by py-spidev which provides faster output. Otherwise a file access method is used.
  • dev - The SPI device path to use. See SPI Setup for more details.
  • SPISpeed - The SPI speed, in MHz, to use when communicating with the strip.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.