Raspberry Pi library to communicate with the TLC59711 12 channel LED driver
tlc59711 12 channel LED PWM driver
python port of the c++ version by adafruit https://github.com/adafruit/Adafruit_TLC59711
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|
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
this sets channel 0 to maximum brightness. The TLC supports 65536 brightness steps from 0 to 100%:
the datasheet has more information on this
this package is a port of https://github.com/adafruit/Adafruit_TLC59711 their BSD license.txt is included in this repository.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for rpi_tlc59711-1.0.0-py3-none-any.whl