Source code for the Curilights Controller. See http://www.saccade.com/writing/projects/CuriController/ for details.

Dependencies:   FatFileSystem mbed

This is the source code for the Curilights controller. This lets you interactively control a string of Curilights. It provides a simple click-wheel user interface for changing colors, brightness and behavior. It responds to movement and lighting.

Finished Controller

/media/uploads/isonno/nxp3872_controllerclose.jpg

System Block Diagram

/media/uploads/isonno/blockdiagram.png

Revision:
3:0ac64c4ca40f
Parent:
0:6da5625a6946
--- a/RGBLED.h	Sun Jan 15 09:07:04 2012 +0000
+++ b/RGBLED.h	Tue Jan 17 13:45:17 2012 +0000
@@ -35,7 +35,7 @@
         fGrnPWM = 1.0 - kLEDPWMTable[grn];
         fBluPWM = 1.0 - kLEDPWMTable[blu];
         
-        printf("RGB: %d, %f %f %f\r\n", rgb, 1.0 - kLEDPWMTable[red], 1.0 - kLEDPWMTable[grn], 1.0 - kLEDPWMTable[blu] );
+//        printf("RGB: %d, %f %f %f\r\n", rgb, 1.0 - kLEDPWMTable[red], 1.0 - kLEDPWMTable[grn], 1.0 - kLEDPWMTable[blu] );
     }
     
 private:
@@ -43,5 +43,8 @@
     int fRGBValue;
 };
 
+// Defined in main for now.
+extern RGBLED gDebugLED;
+
 #endif