Question: Write a program for a reaction time game. An LED turns on randomly between 2 to 5 seconds. When it does, the player has to
Write a program for a reaction time game. An LED turns on randomly between to seconds. When it does, the player has to press a button as fast as possible. The program should measure and display the reaction time on the serial monitor. Make the program print a Womp Womp message if the player is too slow to press the button. Decide when you want to print that. Programming Help: Use the random function to generate an arbitrary delay and use the millis; function to keep track of the time.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
