Help needing disabling button input
in
Integration and Hardware
•
2 years ago
I have a set up running three buttons at the moment. I'm having trouble with my program crashing when somebody presses all three buttons in quick succession.
To stop this from happening, when one button is pressed, I want to disable input from all the buttons for 1 second.
I'd rather not use a delay, so ideally it would be using millis.
I'm really struggling on figuring out a couple of lines of code to do this though, millis really confuses me and I'm not sure how you disable a button in processing.
Can anyone help?
To stop this from happening, when one button is pressed, I want to disable input from all the buttons for 1 second.
I'd rather not use a delay, so ideally it would be using millis.
I'm really struggling on figuring out a couple of lines of code to do this though, millis really confuses me and I'm not sure how you disable a button in processing.
Can anyone help?
1