CircuitPython module for the TLC59711 16-bit 12 channel LED PWM driver. See examples/ for a demo of the usage.

  • Author(s): Tony DiCola

Implementation Notes


Software and Dependencies:

class adafruit_tlc59711.TLC59711(spi, *, auto_show=True)[source]

TLC59711 16-bit 12 channel LED PWM driver. This chip is designed to drive 4 RGB LEDs with 16-bit PWM control of each LED. The class has an interface much like that of NeoPixels with attribute access to the 4 RGB channels (note they are 16-bit values). Or you can access each independent channel by name (r0, g0, b0, r1, b1, etc.) as properties for fine-grained control.

  • spi (SPI) – An instance of the SPI bus connected to the chip. The clock and MOSI/outout must be set, the MISO/input is unused.
  • auto_show (bool) – This is a boolean that defaults to True and indicates any change to a channel value will instantly be written to the chip. You might wish to set this to false if you desire to perform your own atomic operations of channel values. In that case call the show function after making updates to channel state.

The blue brightness for all channels (i.e. B0, B1, B2, and B3). This is a 7-bit value from 0-127.


The green brightness for all channels (i.e. G0, G1, G2, and G3). This is a 7-bit value from 0-127.


The red brightness for all channels (i.e. R0, R1, R2, and R3). This is a 7-bit value from 0-127.


Write out the current LED PWM state to the chip. This is only necessary if auto_show was set to false in the initializer.