bibliopixel.drivers.serial.driver module¶
-
bibliopixel.drivers.serial.driver.
DriverSerial
¶
-
bibliopixel.drivers.serial.driver.
DriverTeensySmartMatrix
¶ alias of
bibliopixel.drivers.serial.driver.TeensySmartMatrix
-
class
bibliopixel.drivers.serial.driver.
Serial
(ledtype=None, num=0, dev='', c_order='RGB', spi_speed=2, gamma=None, restart_timeout=3, device_id=None, hardwareID='1D50:60AB', baudrate=921600, **kwds)[source]¶ Bases:
bibliopixel.drivers.driver_base.DriverBase
Main driver for Serial based LED strips and devices like the AllPixel
Provides the same parameters of
bibliopixel.drivers.driver_base.DriverBase
as well as those below:Parameters: - ledtype – LED protocol type. One of
bibliopixel.drivers.ledtype.LEDTYPE()
- dev (str) – Serial device address/path. If left empty, first device found will be used.
- spi_speed (int) – SPI datarate for applicable LED types, in MHz
- restart_timeout (int) – Seconds to wait between reconfigure reboot and reconnection attempt
- device_id (int) – Device ID to connect to.
- hardwareID (str) – A valid USB VID:PID pair such as “1D50:60AB”
- baudrate (int) – Baud rate to connect to serial device
- ledtype – LED protocol type. One of
-
class
bibliopixel.drivers.serial.driver.
TeensySmartMatrix
(width, height, dev='', device_id=None, hardwareID='16C0:0483', **kwds)[source]¶ Bases:
bibliopixel.drivers.serial.driver.Serial
Variant of
Serial
for use with the Teensy and SmartMatrix library. The following provides compatible firmware: https://github.com/ManiacalLabs/BiblioPixelSmartMatrixAll parameters are the same as with
Serial
, except the default hardwareID is changed to match the Teensy.The main difference is that SmartMatrix requires a sync command to keep multiple instances of this driver running smoothly.