Simon Says is a memory game. Start the game by pressing one of the four buttons. When an LED lights up, press the button matching the LED.
This code generates random sequence, plays music, and displays button lights.
Simon tones from Wikipedia:
* A (red, upper left) - 440Hz - 2.272ms - 1.136ms pulse
* A (green, upper right, an octave higher than A) - 880Hz - 1.136ms,
0.568ms pulse
* D (blue, lower left, a perfect fourth higher than the upper left)
587.33Hz - 1.702ms - 0.851ms pulse
* G (yellow, lower right, a perfect fourth higher than the lower left) -
784Hz - 1.276ms - 0.638ms pulse
Simon Says game originally written in C for the PIC16F88.
Ported for the ATmega168, then ATmega328, then Arduino 1.0.
Fixes and cleanup by Joshua Neal <joshua[at]trochotron.com>
![enter link description here](https://raw.githubusercontent.com/sparkfun/Fritzing_Parts/master/kits/12060_sfe_inventors_kit_with_redboard_v32/sik_redboard_circuit_16.png)
Embed This Sketch
Use the following HTML code to embed the sketch code above in your blog or website.
<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/sketch:77064" frameborder="0"></iframe>
Embed The Serial Monitor
You can also embed the Serial Monitor section! Just use this HTML code.
<iframe style="height: 510px; width: 100%; margin: 10px 0 10px;" allowTransparency="true" src="https://codebender.cc/embed/serialmonitor" frameborder="0"></iframe>