This program is intended to test your reaction time. The built-in LED will flash after some random delay and you are supposed to press FLASH button as soon as possible.
- The program starts a timer with 1 ms interval.
- Interruption handler adds 1 to the interruption counter;
- When a user presses the button
- if LED is disabled print too soon message and exit interruption handler
- otherwise print
INTERRUPTION_COUNTER
variable and set the variable to 0
There's an additional variable called START_NEW_GAME
which is used in the main loop to wait until
the currect game finishes.