This library creates the interface to operate the TLC5940. This device manages 16 PWM outputs.
tlc5940.h
- Committer:
- Fiuba
- Date:
- 2010-11-27
- Revision:
- 0:64ea4d75027c
- Child:
- 1:e8c8347fa919
File content as of revision 0:64ea4d75027c:
#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