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
System Block Diagram
DebugLED.h@3:0ac64c4ca40f, 2012-01-17 (annotated)
- Committer:
- isonno
- Date:
- Tue Jan 17 13:45:17 2012 +0000
- Revision:
- 3:0ac64c4ca40f
LightSensor settings menu; more work (unsuccessful) on serial input from USB.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
isonno |
3:0ac64c4ca40f | 1 | #ifndef __DEBUGLED__ |
isonno |
3:0ac64c4ca40f | 2 | #define __DEBUGLED__ |
isonno |
3:0ac64c4ca40f | 3 | |
isonno |
3:0ac64c4ca40f | 4 | #ifndef MBED_H |
isonno |
3:0ac64c4ca40f | 5 | #include "mbed.h" |
isonno |
3:0ac64c4ca40f | 6 | #endif |
isonno |
3:0ac64c4ca40f | 7 | |
isonno |
3:0ac64c4ca40f | 8 | // Blinking LEDs on the mbed board are used |
isonno |
3:0ac64c4ca40f | 9 | // for light/motion sensor diagnostics |
isonno |
3:0ac64c4ca40f | 10 | |
isonno |
3:0ac64c4ca40f | 11 | const int NumLEDs = 4; |
isonno |
3:0ac64c4ca40f | 12 | extern DigitalOut gLeds[NumLEDs]; |
isonno |
3:0ac64c4ca40f | 13 | |
isonno |
3:0ac64c4ca40f | 14 | void cycleLEDs(); |
isonno |
3:0ac64c4ca40f | 15 | |
isonno |
3:0ac64c4ca40f | 16 | #endif |