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:
2:965388eecf95
Parent:
1:d1da77023e6a
--- a/main.cpp	Sun Jan 15 09:07:04 2012 +0000
+++ b/main.cpp	Mon Jan 16 06:33:34 2012 +0000
@@ -183,9 +183,14 @@
     ZMotionDetector mdetect( p28, p27 );    
     mdetect.SetExtendedRange( true );
 
+leds[0] = leds[1] = leds[2] = leds[3] = 0;
+leds[0] = 1;
     LightString curiLights( p9, 58 );
+leds[1] = 1;
     curiLights.InitLights();
+leds[2] = 1;
     curiLights.AttachUSBSerial();
+leds[3] = 1;
     
     RotaryEncoder knob( p17, p18 );
     PushButton knobButton( p30, "Knob" );