Successfully Added To Cart

EXERCISE SOLUTIONS:

Question 1

Look for these lines of code in the startGame() Function:

flashLED(p1LED,5,1); flashLED(p2LED,5,1);

Change the number in blue to change the speed of the LEDs when a winner is announced.

Question 2

Download the code above (the 'I Give Up' file) for the solution to this question.

Question 3

1. Copy the code underneath the comment
// Serial Monitor countdown and LED flashing.
2. Put the code into a new function called countdown().
3. Replace the original code with:

countdown();

Bonus Question

Connect the buzzer to Pin 10 and then Download the code above (the 'I Give Up' file) for the solution to this question.
Note: There are many ways to do this! See if you can come up with your own solution.