This library allows control of the TLC5940 PWM driver IC. It supports both normal operation and controlling multiplexed displays.

Dependencies:   FastPWM

Dependents:   TLC5940LEDtreiber

Revision:
3:e5ed5650eb15
Parent:
2:69e40ccf506f
--- a/TLC5940.h	Sun May 26 03:08:58 2013 +0000
+++ b/TLC5940.h	Sun May 26 05:04:29 2013 +0000
@@ -28,7 +28,7 @@
   * before the completion of a GSCLK cycle (4096 pulses). If you are daisy chaining multiple TLC5940s,
   * divide 32Mhz by the number of chips to get a good maximum rate.
   */
-#define GSCLK_SPEED 1000000
+#define GSCLK_SPEED 2500000
 
 /**
   *  This class controls a TLC5940 PWM driver IC.
@@ -233,7 +233,7 @@
     void (*SetRows)(int);
 
     // The current row
-    int index;
+    volatile int currentIndex;
 
     // Buffer containing data to be sent during each frame
     unsigned short* dataBuffer;