Skip to content
Rui Azevedo edited this page Mar 1, 2017 · 6 revisions

##Aux. functions

####idx_t print_P(Print& s,const char* at,idx_t len)

print a PROGMEM string, a string that resides on flash memory.

On AVR devices you can not print the char * because the system will try to read from ram instead.

There are some more data residing in flash, be carefull when handling pointers to internal data.

print_P(Serial,item.getText());

####Print& operator<<(Print& o,prompt const &p)

Stream to print menu items. dealing with all flash memory cares.

out<<item;

###result Menu::inaction(menuOut& o,idleEvent) {return proceed;}

default idle handler (menu suspended)

###result Menu::doNothing() {return proceed;}

default callback doNothing, if events mask is noEvent then this functions or any other will never be called.

###result Menu::doExit() {return quit;}

default action for menu exit, so any of your functions that return quit will also do the same

###action Menu::noAction(doNothing);

the default action for the doNothing callback.

Clone this wiki locally