[Logo] TCC discussion forum
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Top Downloads] Top Downloads   [Groups] Back to home page 
[Register] Register /  [Login] Login 


This forum is read only and new users cannot register, please ask all new questions either using GitHub discussions, or in Arduino forum tagging @davetcc.

How to OPEN/CLOSE the menu? RSS feed
Forum Index » tcMenu Arduinio library
Author Message
Lee_X


Joined: Apr 29, 2022
Messages: 27
Offline
Hi I can't find an answer to a very simple question: how to make the menu appear and disappear?

I need the menu only to appear in certain conditions and use the encoders for other UI functions otherwise.

How can I completely release it?

Please let me know asap

Thanks!
Lee_X


Joined: Apr 29, 2022
Messages: 27
Offline
is it just a matter of blanking the screen and not calling taskManager.runLoop()?

or is there a more elegant way to do this?
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
Firstly, please understand that this forum is run by volunteers, we simply can't process things ASAP.

The menu starts out initialised and running, so once you build it onto a board it will immediately start if everything is configured correctly.

You take over the display when you want to use it yourself. You'll be called back in what's often referred to as a "game loop" where you refresh the screen if you need to. It will give you the current value of the encoder and also if the button has been pressed. This suffices for some but not all. When you need more control over the input, you can manually provide the input facilities yourself.

Take over display: http://thecoderscorner.com/products/arduino-libraries/tc-menu/renderer-take-over-display/

Providing input to tcMenu manually: http://thecoderscorner.com/products/arduino-libraries/tc-menu/menumanager-and-iteration/#controlling-the-menu-items-manually
davetcc


Joined: Jan 19, 2019
Messages: 686
Offline
In fact there is even an example dedicateed to taking over the display called IIRC takeOverDisplay.
Lee_X


Joined: Apr 29, 2022
Messages: 27
Offline
Thanks a lot Dave I'll have a look shortly
 
Forum Index » tcMenu Arduinio library
Go to:   
Mobile view
Powered by JForum 2.7.0 © 2020 JForum Team • Maintained by Andowson Chang and Ulf Dittmer

This site uses cookies to analyse traffic, serve ads by Google AdSense (non-personalized in EEA/UK), and to record consent. We also embed Twitter, Youtube and Disqus content on some pages, these companies have their own privacy policies.

Our privacy policy applies to all pages on our site

Should you need further guidance on how to proceed: External link for information about cookie management.