This library creates the interface to operate the TLC5940. This device manages 16 PWM outputs.

Revision:
2:500ec33cd4b6
Parent:
1:e8c8347fa919
Child:
3:40cb2f9adc4d
--- a/tlc5940.h	Sat Nov 27 00:37:33 2010 +0000
+++ b/tlc5940.h	Sat Nov 27 00:50:01 2010 +0000
@@ -27,6 +27,7 @@
     bool first_cycle_flag;
     int GSCLK_counter, data_counter;
     int aux_value, aux_ind;
+    int num_ic;
 
     DigitalOut VPROG;
     DigitalOut SIN;
@@ -42,9 +43,10 @@
 public:
     /** Create a tlc5940 interface object connected to some specifics pins
      *
+     * @param num_ics Number of TLC5940 connected in series
      * @param DC_data[] Dot Correction values for initialization
      */
-    tlc5940 (int DC_data[]);
+    tlc5940 (int num_ics, int DC_data[]);
 
     /** Send the specified set of grayscale values
      *