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:
2:b411648dfe54
Parent:
1:b188393f5b49
Child:
3:2c0af5f5fa13
--- a/TLC5940.h	Mon Oct 12 04:28:01 2015 +0000
+++ b/TLC5940.h	Tue Oct 13 12:20:23 2015 +0000
@@ -17,7 +17,6 @@
 public:
     TLC5940(PinName mosi, PinName miso, PinName sck, PinName xlat, PinName blank, PinName gsclk);
     void set(int channel, uint16_t brightness);
-    void setAll(uint16_t brightness);
     void flush();
     void run();
 };