TucsonDon
Member
I have a 4x20 LCD that I am trying to get a menu to display.
This is what I have so far
On my header file
On my source file
I have four buttons as inputs : Mode, Up, Down, Enter. What I am trying to do is when I push the mode button the main menu will be displayed then scroll up or down with the corresponding button push then display the sub-menu when enter button is pushed .
P.S How do I get code to display as code and not text when posting?
This is what I have so far
On my header file
C:
typedef enum
{
UIModesSetting,
Time,
Pump,
Solar,
Waterfall,
Clean
}MainModes;
On my source file
C:
void UIModeSet(void)
{
switch(UIModesSetting)
{
case Time:
{
UITimerSet();
}
case Pump:
{
//UIPumpSet();
}
case Solar:
{
//UISolarSet();
}
case Waterfall:
{
}
case Clean:
{
}
} /*end of shift()*/
}
I have four buttons as inputs : Mode, Up, Down, Enter. What I am trying to do is when I push the mode button the main menu will be displayed then scroll up or down with the corresponding button push then display the sub-menu when enter button is pushed .
P.S How do I get code to display as code and not text when posting?
Last edited: