adafruit_pixie - Pixie LED driver

  • Author(s): Damien P. George, Limor Fried, Kattni Rembor

class adafruit_pixie.Pixie(uart: busio.UART, n: int, *, brightness: float = 1.0, auto_write: bool = True)

PIxie LEDs.

  • uart (busio.UART) – The UART object.

  • n (int) – The number of Pixies in the chain.

  • brightness (float) – Brightness of the pixels between 0.0 and 1.0.

  • auto_write (bool) – True if the Pixies should immediately change when set. If False, show must be called explicitly.

Example for two Pixie LEDs chained:

property brightness: float

Overall brightness of the pixel

fill(color: Union[int, Tuple[int, int, int]]) None

Colors all pixels the given color.


color (int|(int, int, int)) – Either a tuple or integer representing RGB values, such as (255, 0, 0) or 0xFF0000

show() None

Shows the new colors on the pixels themselves if they haven’t already been autowritten.