A class that will run the Simon Says Game on the Nucleo. More...
Classes | |
class | simonTask.simonTask |
A class that will run the Simon Says Game on the Nucleo.
Implements a finite state machine, shown below, to simulate a game of 'Simon Says' using morse code and the LED (LD1) on the Nucleo L476. The game gets longer as the rounds increase. The code measures when the user turns on and off the LED with the push and release of the button. The pattern is randomly generated between turning on and off between either 0.5 sec or 1 sec. There is a tolerance of 0.3 seconds for the user push. If the user fails to replicate the pattern, the round will end and the user will be given a choice to continue or end the game. When the user quits the game the total score is shown. The link to the code can be found here: https://bitbucket.org/mzaman01/me305_labs/src/master/Lab%203/simonTask.py The link to the video can be found here: https://youtu.be/jU0XBBrgE_I