Arduino menU-Ui magic 1.0
Arduino menu user interface library
|
#include <menu.h>
Public Member Functions | |
menuOption () | |
menuOption (const char *text) | |
virtual void | run () |
virtual bool | refresh () |
virtual bool | pushRt () |
virtual bool | pushLt () |
Public Attributes | |
char | text [menuTextArrayLength] |
bool | autoRefresh = true |
Simplest menuOption base class, is to be inherited, put your custom code at run()
menuOption::menuOption | ( | ) |
for compiler puposes, better not to use it
menuOption::menuOption | ( | const char * | text | ) |
constructor, sets the caption text
|
virtual |
called then left left is pressed
Reimplemented in menuOptionOnOff, and menuOptionRangeValue.
|
virtual |
called then right arrow is pressed
Reimplemented in menuOptionOnOff, and menuOptionRangeValue.
|
virtual |
called when autoRefresh is set here and screenMenu
Reimplemented in menuOptionOnOff, menuOptionRangeValue, and changeScreenMenuOption.
|
virtual |
inherit to do your thing
Reimplemented in changeScreenMenuOption.
bool menuOption::autoRefresh = true |
wants refresh() to be called
char menuOption::text[menuTextArrayLength] |
Caption