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@4:cfef06d8bb96, 2013-02-11 (annotated)
- Committer:
- isonno
- Date:
- Mon Feb 11 05:04:18 2013 +0000
- Revision:
- 4:cfef06d8bb96
- Parent:
- 3:0ac64c4ca40f
Minor changes to add backlight routines. Not hooked up yet, shouldn't affect build operation.
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 |