TLC5940 library which supports SWSPI, has API to specify grayscale PWM period and has API like Arduino library.
Fork of TLC5940 by
Diff: TLC5940.h
- Revision:
- 5:c35b2b62f2f3
- Parent:
- 4:fc83415fa28c
diff -r fc83415fa28c -r c35b2b62f2f3 TLC5940.h --- a/TLC5940.h Sat Oct 17 02:47:11 2015 +0000 +++ b/TLC5940.h Sat Oct 17 06:52:23 2015 +0000 @@ -2,11 +2,11 @@ #define TLC5940_H_ #include "mbed.h" -#include "SWSPI.h" +template<typename T> class TLC5940 { private: - SWSPI _spi; + T _spi; PwmOut _gsclk; DigitalOut _xlat; DigitalOut _blank;