Mike R / Mbed 2 deprecated Pinscape_Controller_V2

Dependencies:   mbed FastIO FastPWM USBDevice

Fork of Pinscape_Controller by Mike R

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),