Arduino: Library for TLC5940 16-channel PWM chip

By dmd08

출처:

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1218174457/2#2

The TLC5940 is a 16-channel, constant-current sink LED driver. Each channel has an individually adjustable 4096-step grayscale PWM brightness control and a 64-step, constant-current sink (no LED resistors needed!).

This library supports daisy-chaining multiple chips together. I haven’t tried this library on anything but a Diecimila, so YMMV.

The most useful functions:
Tlc.analogWrite(channel (0 – 15), value (0 – 4095), chip (0 – n));
Tlc.analogWriteAll(value (0- 4095), chip (0 – n));
Tlc.setPWMperiod(PWM period (0 – n) milliseconds);

TLC5940.zip:
http://students.washington.edu/acleone/codes/arduino_TLC5940_library/TLC5940.zip

Browse the library:
http://students.washington.edu/acleone/codes/arduino_TLC5940_library/TLC5940/

In progress: TLC5940 Servo Library

Leave a Reply