Arduino menU-Ui magic 1.0
Arduino menu user interface library
|
#include <menu.h>
Public Member Functions | |
menuOptionOnOff () | |
menuOptionOnOff (const char *text, bool initValue=false) | |
menuOptionOnOff constructor More... | |
virtual bool | refresh () |
virtual bool | pushRt () |
virtual bool | pushLt () |
![]() | |
menuOption () | |
menuOption (const char *text) | |
virtual void | run () |
virtual bool | refresh () |
virtual bool | pushRt () |
virtual bool | pushLt () |
Public Attributes | |
bool | state |
bool | statePrinted |
![]() | |
char | text [menuTextArrayLength] |
bool | autoRefresh = true |
Switch menuOptionOnOff base class is to be inherited, put your custom code at run(), read state at state Uses ':'(menu.cpp menuOptionDelimiter) as separator
menuOptionOnOff::menuOptionOnOff | ( | ) |
for compiler puposes, better not to use it
menuOptionOnOff::menuOptionOnOff | ( | const char * | text, |
bool | initValue = false |
||
) |
menuOptionOnOff constructor
constructor, sets the caption text, do not use ':', might set init value
might set initial values
[in] | text | string char * used as caoption |
[in] | initValue | optional initial value |
|
virtual |
switches state, if inherit, call base menuOptionOnOff::pushLt()
Reimplemented from menuOption.
|
virtual |
switches state, if inherit, call base menuOptionOnOff::pushRt()
Reimplemented from menuOption.
|
virtual |
inherit to do your thing
Reimplemented from menuOption.