Register / Login  |  Desktop view  |  Jump to bottom of page

tcMenu Arduinio library » Destroy tcMenu object?

Author: ScubaSteve
18/07/2021 13:59:30
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

Author: davetcc
20/07/2021 08:32:01
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.




Register / Login  |  Desktop view  |  Jump to top of page