Pages: [1]   Go Down
Author Topic: TLC5940 code  (Read 602 times)
0 Members and 1 Guest are viewing this topic.
Sioux Falls
Offline Offline
Jr. Member
**
Karma: 0
Posts: 77
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, I am ok with arduino but I am absolutely brand new to the tlc5940 led driver.  To help me get started, I would like to know the exact code ( libraries, etc.) to make the tlc5940 light up 16 leds off of sayyy.. pin number 5 on the atmega328.  From there, I want to know how many tlc5940's I can hook up to one atmega328.  Each tlc will be turned on or off based on reading from an individual analog pin, so I imagine I will only get about 4 tlc's per atmega, which is fine...



thanks in advance!!
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 83
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have no idea what a TLC5940 is, but I'm guessing it's a digital multiplexer.

No matter, I think you need to read the datasheet for it before asking here. Chances are, if somebody is going to help you, the first thing they're going to do is read the datasheet and then post the answers to your questions. Just doing it yourself will make you a better person. smiley-razz
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 83
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well, I looked it up. A PWM multiplexer is basically a digital multiplexer, kind of, right guys? Right?
Logged

Sioux Falls
Offline Offline
Jr. Member
**
Karma: 0
Posts: 77
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, that is what it is.    I am following this dumb tutorial....  http://www.arduino.cc/playground/Learning/TLC5940   but it doesn't really tell me how to write the code/ setup the code or whatever to use the tlc5940

plus, when I download and unzip the library, there is NO basics part in the file/examples of the library, only Matrix and Serial.  Sucks!

sample beginning code please?
Logged

0
Offline Offline
Jr. Member
**
Karma: 0
Posts: 83
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

From the page you linked:

Quote
Getting Started
Open the BasicUse example in the Arduino IDE. It should be in File→Sketchbook→Examples→Library-Tlc5940.
Logged

Sioux Falls
Offline Offline
Jr. Member
**
Karma: 0
Posts: 77
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

yep I did that, only Matrix and Serial appear, and they are confusing, not basic
Logged

Pages: [1]   Go Up
Jump to: