Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed FastIO FastPWM USBDevice
Fork of Pinscape_Controller by
Diff: TLC5940/TLC5940.h
- Revision:
- 47:df7a88cd249c
- Parent:
- 40:cc0d9814522b
- Child:
- 48:058ace2aed1d
--- a/TLC5940/TLC5940.h Mon Feb 15 20:30:32 2016 +0000 +++ b/TLC5940/TLC5940.h Thu Feb 18 07:32:20 2016 +0000 @@ -67,6 +67,7 @@ #include "mbed.h" #include "FastPWM.h" #include "SimpleDMA.h" +#include "DMAChannels.h" /** * SPI speed used by the mbed to communicate with the TLC5940 @@ -154,7 +155,8 @@ * @param nchips - The number of TLC5940s (if you are daisy chaining) */ TLC5940(PinName SCLK, PinName MOSI, PinName GSCLK, PinName BLANK, PinName XLAT, int nchips) - : spi(MOSI, NC, SCLK), + : sdma(DMAch_TLC5940), + spi(MOSI, NC, SCLK), gsclk(GSCLK), blank(BLANK), xlat(XLAT),