[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 

Destroy tcMenu object? RSS feed
Forum Index » tcMenu Arduinio library
Author Message
ScubaSteve


Joined: May 14, 2021
Messages: 30
Offline
Hi Dave!

I have a situation where I need to lock the user out of the menu. Is there a way to unload/destroy the object so pushing OK on the encoder does nothing?

Thanks!

Steve
davetcc


Joined: Jan 19, 2019
Messages: 492
Offline
There's a possible easier way than that, in code generator just set input to No Input plugin. Then you have control of the encoder and push button yourself in your own handlers, you can choose to provide it to tcMenu or not. See the section on manually handling events below.

https://www.thecoderscorner.com/products/arduino-libraries/tc-menu/menumanager-and-iteration/


There are examples of manually setting up both a rotary encoder and a push-button in the IoAbstraction examples.
 
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.