Skip to main content

Raspberry Pi library to communicate with the TLC59711 12 channel LED driver

Project description

tlc59711 12 channel LED PWM driver

python port of the c++ version by adafruit


Datasheet: Adafruit prototyping board:

One communicates with the chip via the i2c bus by toggling clk (clock) to shift the current state (low/high) of the data pin into the ICs 16bit register.


Connect the IC to your pi using any two GPIO pins

Name RPi Pin RPi GPIO TLC59711 Adafruit TLC59711
Data 18 GPIO24 SDTI DI
Clock 16 GPIO23 SCKI CI
3v3 1 3v3 3v3 VCC
Ground 6 GND GND GND

import the library and RPi.GPIO

import RPi.GPIO as GPIO
from tlc59711 import tlc59711

tlc = tlc59711(23, 24)

now you can set each channel like this


this sets channel 0 to maximum brightness. The TLC supports 65536 brightness steps from 0 to 100%:

Value Brightness
0xFFFF 100%
0x7FFF 50%
0x3FFF 25%

the datasheet has more information on this


this package is a port of their BSD license.txt is included in this repository.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for rpi-tlc59711, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size rpi_tlc59711-1.0.0-py3-none-any.whl (2.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size rpi-tlc59711-1.0.0.tar.gz (2.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page