Skip to content

oysols/tlc5940-micropython

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
img
 
 
 
 
 
 
 
 

TLC5940 Micropython Library

tlc5940

Minimal implementation of grey scale data transmission with multiple tlc5940 in series.

import tlc5940
tlc = tlc5940.interface('GP23', 'GP1', 'GP7', 'GP2', 'GP14', 'GP16')
data = tlc5940.simple_byte_array("1010000000000000")
tlc.set_data(data) # enable output0 and output2

Includes example code for driving multiple 7-segments displays.

7-segment

Only tested with the WiPy microcontroller.

Sources:

TI Programming Flow Chart

TI TLC5940 Data Sheet

Matthew T. Pandina's "Demystifying the TLC5940" written for the AVR-GCC compiler.

About

TLC5940 Micropython Library

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages