Please consider a DTSP switch or push button. "I found a 2 inch one on eBay as an arcade game replacement."
Could the software be modified so that the common terminal (CO) is connected to DB-9 pin 4 (DTR)
Normally open (NO) is connected to DB-9 pin 6 (DSR)
Normally closed (NC) is connected to DP-9 pin 8 (CTS)
Then it doesn't matter how much the switch bounces. It is always saying the same thing on a particular pin.
In one configuration push could be start and release could be stop.
In another configuration each push could toggle the start/stop state.
-
Note that DB-9 pin 4 (DTR) never changes state.
-
DB-9 pin 7 (RTS) could change states when the timer times out
-
A second button could be used for Snap. (Here one might want to enable skip contact bounce.)
The computer reads:
DB-9 pin 6 DSR
DB-9 pin 8 CTS
DB-9 pin 9 RI <- switch <- DB-9 pin 4 DTR (for snap)
Russell