neu-rah / ArduinoMenu

Arduino generic menu/interactivity system
GNU Lesser General Public License v2.1
929 stars 189 forks source link

Event when I exit the root menu? #398

Open occamsshavingkit opened 1 year ago

occamsshavingkit commented 1 year ago

Hello! I got everything going, and I am happy with the menu. I would like to return to my home screen when I exit from the root menu, but somehow I don't get an exitEvent when I either hit the "back" key or choose an EXIT menu item. Is there a flag or variable I could access to know if an exit is called on the root menu?

vplong990 commented 1 year ago

Same question.

neu-rah commented 1 year ago

maybe this helps, you can set your own function as idle handler

https://github.com/neu-rah/ArduinoMenu/wiki/Idling

https://github.com/neu-rah/ArduinoMenu/blob/master/examples/fullIdle/fullIdle/fullIdle.ino