Start and stop menu? #414
|
Hi there! I was wondering whether it was possible to start / stop the menu in an application? Let's say that I want to have a device that turns on an LED when I press a button, but when I hold the button I want to start up the menu. Then the menu would run until I select an "exit" item on the top level menu. Can I just call taskManager.runLoop() when I want to run the menu? Something like this: When I select the "exit" item in the menu, I would then set runMyMenu = 0 again and the non-menu portion of the code would run. Possible? I would like to run a fairly timing-sensitive operation in the non-menu part of the code as well as showing something other than the menu on the display. The menu would just be for configuration / setup of the device. |
Replies: 1 comment 6 replies
|
It is possible to take over the display for your own purposes and give it back some point later: https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/renderer-take-over-display/ |
So along with the above answer, for anyone wanting more manual control, TcMenu now supports fluent API - https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/menu-item-types/fluent-menu-builder-intro/, where you can take far more manual control of the menu items.