Chapter 7. Subtask 5: Program the Game

Now that you’ve got the mini breadboard circuit wired up properly and connected to the MintDuino, all that’s left is to upload the sketch that will allow two players to see who is the fastest button pusher on the planet.

The game will run as follows:

  1. Turn on the MintDuino—use either a 9V battery or USB power via the FTDI Adapter.

  2. Both player LEDs will light up and stay lit.

  3. Press the Player 2 button to start the game; both player LEDs will turn off.

  4. The Game Light (center LED on the mini breadboard) will blink three times.

  5. After the Game Light blinks three times, a random amount of time will pass before it lights again.

  6. When the Game Light blinks again, each player will try to push his or her button before the other ...

Get MintDuino now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.