Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oysols/tlc5940-micropython
TLC5940 Micropython Library
https://github.com/oysols/tlc5940-micropython
micropython
Last synced: about 1 month ago
JSON representation
TLC5940 Micropython Library
- Host: GitHub
- URL: https://github.com/oysols/tlc5940-micropython
- Owner: oysols
- Created: 2017-02-15T23:32:52.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-15T23:46:24.000Z (almost 8 years ago)
- Last Synced: 2024-04-22T12:34:19.453Z (8 months ago)
- Topics: micropython
- Language: Python
- Homepage:
- Size: 87.9 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-mpython - tlc5940-micropython - Driver for TLC5940 16 channel LED driver. (精选驱动库 / 显示类)
- awesome-micropython - tlc5940-micropython - Driver for TLC5940 16 channel LED driver. (Libraries / Display)
README
# TLC5940 Micropython Library
![tlc5940](img/chip.jpg)
Minimal implementation of grey scale data transmission with multiple tlc5940 in series.
```python
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](img/7segment.jpg)
Only tested with the WiPy microcontroller.
Sources:
[TI Programming Flow Chart](http://www.ti.com/lit/sw/slvc106/slvc106.pdf)
[TI TLC5940 Data Sheet](http://www.ti.com/lit/ds/symlink/tlc5940.pdf)
Matthew T. Pandina's ["Demystifying the TLC5940"](https://sites.google.com/site/artcfox/demystifying-the-tlc5940) written for the AVR-GCC compiler.