Finding my away around the Nucleo-L476RG
The game of lab02.py incorperates an LED, button, and timer into a reaction game. One begun the player has a random amount of time between 2 and 3 seconds before the onboard green LED is illuminated. Once lit, the user has one second to press the blue button on the board. Their reation time is recored and reported. If they fail to press the button within the second their session expires and their stats are printed to the screen before the next session begins automatically. The game continues indefinitely unitl the user presses ^C to quit.
(Source: https://bitbucket.org/dhmorse/me-405/src/master/Lab02/)
The following image is a screen grab of the RXN game readout after playing a few rounds. Think you're faster? Give it a try!
(Source: https://bitbucket.org/dhmorse/me-405/src/master/Lab02/)