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

Revision:
0:64ea4d75027c
Child:
1:e8c8347fa919
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tlc5940.h	Sat Nov 27 00:28:33 2010 +0000
@@ -0,0 +1,28 @@
+#ifndef MBED_TLC5940_H
+#define MBED_TLC5940_H
+
+#include "mbed.h"
+
+class tlc5940 {
+private:
+    bool first_cycle_flag;
+    int GSCLK_counter, data_counter;
+    int aux_value, aux_ind;
+
+    DigitalOut VPROG;
+    DigitalOut SIN;
+    DigitalOut SCLK;
+    DigitalOut XLAT;
+    DigitalOut BLANK;
+    DigitalOut DCPROG;
+    DigitalOut GSCLK;
+
+    DigitalIn SOUT;
+    DigitalIn XERR;
+
+public:
+    tlc5940 (int DC_data[]);
+    void send_data (int data[]);
+};
+
+#endif
\ No newline at end of file