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
Diff: UIMenu.h
- Revision:
- 1:d1da77023e6a
- Parent:
- 0:6da5625a6946
- Child:
- 3:0ac64c4ca40f
--- a/UIMenu.h Thu Dec 29 01:59:53 2011 +0000 +++ b/UIMenu.h Sun Jan 15 09:07:04 2012 +0000 @@ -37,7 +37,7 @@ // Hands over the control from one control item to another // (e.g., from a menu to a submenu). Control actions are routed // to the other item) - virtual void SwitchTo( PushKnobUI * otherDevice ); + virtual void SwitchControl( PushKnobUI * otherDevice ); // This gets called any time there's control // activity, it wakes up the LCD backlight. @@ -69,8 +69,12 @@ // Call to add an item to the menu virtual void AddItem( const char * label ); - // Turn on the display of the menu + // Turn on / check status the display of the menu virtual void Display( bool on ); + virtual bool IsDisplayOn() const { return fDisplayOn; } + + // Switch to another menu + virtual void SwitchTo( UIMenu * nextMenu ); // Returns the currently selected item virtual int SelectedItem() { return fSelectedItem; }