Arduino menU-Ui magic 1.0
Arduino menu user interface library
|
#include <menu.h>
Public Member Functions | |
menuOptionRangeValue () | |
menuOptionRangeValue (const char *text, int minVal, int maxVal, int initValue, int step=1) | |
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 | |
int | state |
int | statePrinted |
int | _maxValue |
int | _minValue |
int | _step |
![]() | |
char | text [menuTextArrayLength] |
bool | autoRefresh = true |
Linear value selector menuOptionRangeValue base class is to be inherited, put your custom code at run(), read state at state Uses ':' as separator
menuOptionRangeValue::menuOptionRangeValue | ( | ) |
for compiler puposes, better not to use it
menuOptionRangeValue::menuOptionRangeValue | ( | const char * | text, |
int | minVal, | ||
int | maxVal, | ||
int | initValue, | ||
int | step = 1 |
||
) |
constructor, sets the caption text, do not use ':', maximum, minimum, initial value, might set step
|
virtual |
decreases state by 1 step(see constructor), if inherit, call base menuOptionRangeValue::pushRt()
Reimplemented from menuOption.
|
virtual |
increases state by 1 step(see constructor), if inherit, call base menuOptionRangeValue::pushRt()
Reimplemented from menuOption.
|
virtual |
inherit to do your thing
Reimplemented from menuOption.