TLC5940 library which supports SWSPI, has API to specify grayscale PWM period and has API like Arduino library.

Fork of TLC5940 by Stefan Nielsen

Revision:
4:fc83415fa28c
Parent:
3:2c0af5f5fa13
Child:
5:c35b2b62f2f3
--- a/TLC5940.h	Sat Oct 17 01:36:58 2015 +0000
+++ b/TLC5940.h	Sat Oct 17 02:47:11 2015 +0000
@@ -14,7 +14,6 @@
     int _gspwmcycle_us;
     bool _gspwmcycle_repeat;
     uint16_t gs_data[16];
-    void refresh();
 public:
     /**
      * Constructor.
@@ -33,6 +32,7 @@
     void set(int channel, uint16_t brightness);
     void flush();
     void run();
+    void refresh();
 };
 
 #endif /* TLC5940_H_ */
\ No newline at end of file