Jomelo / LCDMenuLib2

Create a tree menu. Use it with different lcd types / console output / ssh console.
MIT License
249 stars 47 forks source link

open and close the entire menu at will? #30

Closed RawLiquid closed 5 years ago

RawLiquid commented 5 years ago

Might there be any way to say have a sketch running that uses the lcd, then when the user presses a button show the menu and at some point be able to exit the menu and go back to the initial program?

Zefram88 commented 5 years ago

I've managed to do this using one of the menus as main for program, i've call it directly in void setup() as this: LCDML.OTHER_jumpToFunc(mFunc_information); so when it boot up it display directly this page, plus i've used

    if (LCDML.BT_checkEnter()) { // check if any button is pressed (enter, up, down, left, right)
      // LCDML_goToMenu stops a running menu function and goes to the menu
      LCDML.FUNC_goBackToMenu();

so it goes to the menu only if you press enter.

Jomelo commented 5 years ago

Its a bug: #33