TLC5940

Hi, I have TLC5940 and want just turn on only one simple LED, how to do this? Maybe someone could write a simple code that I understand how things are going? Thanks.

http://www.arduino.cc/playground/Learning/TLC5940

Problem is that the link to the documentation doesn't work anymore. It's possible to use the library and learn from the examples, but the online documentation pages don't exist anymore. (Google has the main page cached, but not the rest)

Eould be lovely if someone could provide with the documentation,

hmm I followed the link Nick posted
first link on there is:
The datasheet is available at http://www.ti.com/lit/gpn/tlc5940.
clicked that got the datasheet

did I miss something?

I didn't mean the data sheet of tlc5940 but rather the documentation for the tlc5940 library, sorry didn't make myself clear.
Datasheet is easily found and also the library. And it's workable with just the examples, or reading source code, but would be great to have documentation available also.

ah fair cop
I see what you mean now

well here's a plan
the best way to learn is by teaching
so why don't you make notes as you get to grips with it! :slight_smile:
sorry - bit cheeky!

mmcp42:
ah fair cop
I see what you mean now

well here's a plan
the best way to learn is by teaching
so why don't you make notes as you get to grips with it! :slight_smile:
sorry - bit cheeky!

:smiley:

Well, don't really have time for it. I was asking this for a student in my course so she could better understand it.
-So yes, I'm already teaching :wink:

ammygo:
Hi, I have TLC5940 and want just turn on only one simple LED, how to do this? Maybe someone could write a simple code that I understand how things are going?

That was the original question. The link I found (by Googling BTW) led to the page I quoted. On that page is a working link to code:

http://tlc5940arduino.googlecode.com/files/Tlc5940Mux_2.zip

Surely the question was answered?

This is where the student (although not mentioned in the original post) might need to look at the datasheet, the example code, and then write some code themselves.

Hello,

assuming you connected the TLC5940 to your arduino as discripted in the playground and using the TLC library, just say:

Tlc.set(channel, value).

Replace channel with the number of output pin from TLC your LED is connected.
With value you can detern the brightness, if you use 4095 is complete on.

This should work.

Regards
Andreas

The old thread said:

Tlc.analogWrite(channel, value, chip);

Does "set" work that way now? I mean, does it take three values with chip number being the third value? (When I try to verify my script, I am told that the current version of the library "has no member named" Tlc.analogWrite).

Can someone with editing priveleges please put the current information on the page for the TLC5940 library? Arduino Playground - TLC5940