Pinscape Controller version 1 fork. This is a fork to allow for ongoing bug fixes to the original controller version, from before the major changes for the expansion board project.

Dependencies:   FastIO FastPWM SimpleDMA mbed

Fork of Pinscape_Controller by Mike R

Revision:
20:4c43877327ab
Parent:
19:054f8af32fce
Child:
21:5048e16cc9ef
--- a/main.cpp	Fri Feb 27 07:48:58 2015 +0000
+++ b/main.cpp	Sat Feb 28 00:32:57 2015 +0000
@@ -1211,9 +1211,12 @@
     {
         // Look for an incoming report.  Process a few input reports in
         // a row, but stop after a few so that a barrage of inputs won't
-        // starve our output event processing.
+        // starve our output event processing.  Also, pause briefly between
+        // reads; allowing reads to occur back-to-back seems to occasionally 
+        // stall the USB pipeline (for reasons unknown; I'd fix the underlying 
+        // problem if I knew what it was).
         HID_REPORT report;
-        for (int rr = 0 ; rr < 4 && js.readNB(&report) ; ++rr)
+        for (int rr = 0 ; rr < 4 && js.readNB(&report) ; ++rr, wait_ms(1))
         {
             // all Led-Wiz reports are 8 bytes exactly
             if (report.length == 8)