bibliopixel.layout.strip module

bibliopixel.layout.strip.LEDStrip

alias of bibliopixel.layout.strip.Strip

class bibliopixel.layout.strip.Strip(drivers, threadedUpdate=False, brightness=255, pixelWidth=1, **kwargs)[source]

Bases: bibliopixel.layout.layout.MultiLayout

CLONE_ATTRS = ('maker', 'brightness', 'gen_coord_map', 'coord_map', 'brightness', 'pixelWidth')
get(pixel)[source]

Get RGB color tuple of color at index pixel

set(pixel, color)[source]

Set the pixel color at position x in the strip.

setHSV(pixel, hsv)[source]

Set single pixel to HSV tuple

setOff(pixel)[source]

Set single pixel off

setRGB(pixel, r, g, b)[source]

Set single pixel using individual RGB values instead of tuple

shape

Returns a 1-tuple with the length of the strip