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

SettingsMenu.h

Committer:
isonno
Date:
2012-01-15
Revision:
1:d1da77023e6a
Child:
3:0ac64c4ca40f

File content as of revision 1:d1da77023e6a:

#ifndef _SETTINGSMENU_
#define _SETTINGSMENU_

#ifndef _UIMENU_
#include "UIMenu.h"
#endif

class HomeMenu;

class SettingsMenu : public UIMenu
{
public:
    SettingsMenu( CheapLCD * lcd, HomeMenu * parent );
    virtual ~SettingsMenu() {};
    
protected:
    virtual void KnobPushed();
    virtual void AttachButton( PushButton * button )
        { button->attach( this, &SettingsMenu::KnobPushed ); }
    
private:
    CheapLCD * fLCD;
    HomeMenu * fParent;
};

class DebugMenu : public UIMenu
{
public:
    DebugMenu( CheapLCD * lcd, SettingsMenu * parent );
    virtual ~DebugMenu() {};

protected:
    virtual void KnobPushed();
    virtual void AttachButton( PushButton * button )
        { button->attach( this, &DebugMenu::KnobPushed ); }
        
private:
    CheapLCD * fLCD;
    SettingsMenu * parent;
};

#endif