Skip to main content

tlc59711 12 channel LED PWM driver

python port of the c++ version by adafruit https://github.com/adafruit/Adafruit_TLC59711

Chip

Datasheet: http://www.ti.com/lit/ds/symlink/tlc59711.pdf Adafruit prototyping board: https://www.adafruit.com/product/1455

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.

Usage

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

GPIO.setmode(GPIO.BCM)
tlc = tlc59711(23, 24)

now you can set each channel like this

tlc.SetPWM(0,0xFFFF)

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

License

this package is a port of https://github.com/adafruit/Adafruit_TLC59711 their BSD license.txt is included in this repository.

Release files for rpi-tlc59711 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rpi-tlc59711 1.0.0
File Size Uploaded
rpi-tlc59711-1.0.0.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rpi-tlc59711 1.0.0
File Interpreter ABI Platform
rpi_tlc59711-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.6 kB

Release files / rpi-tlc59711-1.0.0.tar.gz

Download URL rpi-tlc59711-1.0.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
6b6f3f8095f24c2b66f47091656ec429a7d3f632d0751fc7ceccbfeb3c54e373
BLAKE2b-256 checksum
How to use checksums
b1f00fbd517c5f07fc095486148dd7e022d6a0dad04006d0f50a654cf74eee3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.23.3 CPython/3.6.5

Release files / rpi_tlc59711-1.0.0-py3-none-any.whl

Download URL rpi_tlc59711-1.0.0-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9eb26661e84514c6f568f2844eb6e35ec99299016607482da95863b9299cc771
BLAKE2b-256 checksum
How to use checksums
4d3cd3b8a0e0e2a3022c9c48de444d0b5a78b2d1e453513822926f9164f664f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.23.3 CPython/3.6.5

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page