Ciao Oliver,
I've did a couple of try ...
so i don't understand why I've like into tutorial explain I've put :
M2_ROOT(el_switch_to_graphics, NULL, "Show Graphics", &m2_null_element);
and I've tried also:
if ( m2.getRoot() == &m2_null_element ) {
if ( m2.getKey() != M2_KEY_NONE )
m2.setRoot(&list_element);
}
m2.checkKey();
if ( m2.handleKey() ) {
m2.draw();
}
like your suggestion seems that the condition is always verified because I've put serial debug print for see where the program pass and pass to here when I press the button:
if ( m2.getKey() != M2_KEY_NONE )
m2.setRoot(&list_element);
... if put == 0 ...to here :
m2.getRoot() == &m2_null_element
the menu has been disappeared but when i check press the button the menu doesn't appers ... where could be the issues ? i very appreciate your support
thanks
gnux