adafruit_tlc59711
¶
CircuitPython module for the TLC59711 16-bit 12 channel LED PWM driver. See examples/simpletest.py for a demo of the usage.
- Author(s): Tony DiCola
Implementation Notes¶
Hardware:
- Adafruit 12-Channel 16-bit PWM LED Driver - SPI Interface - TLC59711 (Product ID: 1455)
Software and Dependencies:
- Adafruit CircuitPython firmware for the ESP8622 and M0-based boards: https://github.com/adafruit/circuitpython/releases
-
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.
Parameters: - 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.
-
blue_brightness
¶ The blue brightness for all channels (i.e. B0, B1, B2, and B3). This is a 7-bit value from 0-127.
-
green_brightness
¶ The green brightness for all channels (i.e. G0, G1, G2, and G3). This is a 7-bit value from 0-127.
-
red_brightness
¶ The red brightness for all channels (i.e. R0, R1, R2, and R3). This is a 7-bit value from 0-127.