I am thinking of using a timed button press to determine which branch of code to enter (I want to make a secret menu that appears on the screen after a button is held for 5 seconds).
What is the best way to accomplish this? I saw an old post about this but am not sure:
- where to put the timer/how to capture the time (the example link in the old post was broken)
- if interrupt driven DateTime.Now differences are better than a timer
- if there is a better way to accomplish entering my “secret menu”
I have 5 buttons on my device, all are interrupt low driven. If I did an interrupt timer, would I have to sacrifice one of these buttons to set it to both edges? I can always add another dedicated menu button if this turns out to be unreliable/a pain.