Hi All! My first post, be gentle with me! 8)
I'm designing a sports timing system for a friend, and it needs to have two distinctive modes of operation. I have a Uno running a 16x2 character display and with three pushbuttons. The system needs to start up with a banner advert (easy) and then prompt for the user to press one button or the other to choose a mode. The modes are very similar, and it's preferable for the program to get trapped permanently in one mode or the other. I wondered what the best way of doing this is? I wondered about defining mode A as a function() and mode be as anotherfunction() but I'm not sure how to get the Arduino to ask the question and wait forever for the button press?
Also, If I use function calls in that way, I'm worried that once the function finishes, it'll return to the question, when instead it needs to cycle that function endlessly. I suppose I want to be able to choose between two variants of void loop(). I'd welcome advice on how best to go about this!
Many thanks! Dave H