Another trivial question for me. I want to code for a max waiting time for a user response before executing a process. I don't want to wait in a loop because this may cause other problem (i suppose)
My English is not perfect so I will describe my idea
The goal is to have a Arduino software reset availble by using a keypad.
Once the user has press the button # 7 . Message display:" Software Reset. Yes 6 No 7" wait max 3 seconds then get out if no response
If button 6 press within the allowed time then SoftwareReset if Button 7 then exit
How it it be implemented without a risk of an extended period loop