TLC5940 library which supports SWSPI, has API to specify grayscale PWM period and has API like Arduino library.
Fork of TLC5940 by
History
Avoid unexpected refresh in flush() for use of GS PWM as blink.; Otherwise, blink period varies.
2015-10-18, by deton [Sun, 18 Oct 2015 12:06:51 +0000] rev 6
Avoid unexpected refresh in flush() for use of GS PWM as blink.; Otherwise, blink period varies.
template for SWSPI
2015-10-17, by deton [Sat, 17 Oct 2015 06:52:23 +0000] rev 5
template for SWSPI
Change refresh() as public to be used by caller that refreshes using Timer instead of Ticker in TLC5940 class.
2015-10-17, by deton [Sat, 17 Oct 2015 02:47:11 +0000] rev 4
Change refresh() as public to be used by caller that refreshes using Timer instead of Ticker in TLC5940 class.
Add arguments gspwmcycle_us and gspwmcycle_repeat.; gspwmcycle_repeat argument is for avoiding use of Ticker; which may not work after about 80 minutes on mbed HRM1017(nRF51822).
2015-10-17, by deton [Sat, 17 Oct 2015 01:36:58 +0000] rev 3
Add arguments gspwmcycle_us and gspwmcycle_repeat.; gspwmcycle_repeat argument is for avoiding use of Ticker; which may not work after about 80 minutes on mbed HRM1017(nRF51822).
Remove unused setAll().; ; Comment out sclk pulse before grayscale data,; becaue it works without this pulse.
2015-10-13, by deton [Tue, 13 Oct 2015 12:20:23 +0000] rev 2
Remove unused setAll().; ; Comment out sclk pulse before grayscale data,; becaue it works without this pulse.
use SWSPI for nRF51822 that does not support 12 bits format SPI.
2015-10-12, by deton [Mon, 12 Oct 2015 04:28:01 +0000] rev 1
use SWSPI for nRF51822 that does not support 12 bits format SPI.
s
2013-03-24, by Julepalme [Sun, 24 Mar 2013 16:23:29 +0000] rev 0
s