Skip to content

AlexMainstone/SimonSays

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimonSays

Simon says for the Arduino

Circuit Diagram

Circuit Diagram

Adding Additional LED's

Simply add an LED and PushButton to the circuit parallel to the others.

Now just add the port of the LED to:

const int leds[LED_NUM] = {3,4,5,2};

And the port of the PushButton to:

const int switches[LED_NUM] = {8,7,6,9};

Features

  • Extensibility: More LEDs and switches can be added to the circuit and an array in the code. The code is written with a non-specific led amount in mind.
  • Simplicity: An easy game to understand, with a simple design
  • Multiple levels: The game continues to level 100, this can be changed in code easily by changing the constant variable in the code.
  • Failure: The game clearly states failure by flashing all the LEDs
  • Makes use of Push Buttons and LEDs
  • Modular code

Instructions

  • The goal of the game is to copy the sequence of lights.
  • Each button corresponds with an LED, the goal of the game is to remember the sequence of lights presented by the arduino and copy it.
  • The arduino will display a light, press the button corresponding with that light.
  • The computer will then add another light to the sequence, you must then repeat the sequence using the buttons.
  • If you fail to enter the sequence correctly, all of the LEDs will light up, meaning that you have failed! The game will then restart.

About

Simon says for the Arduino

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages