

Simon says is a simple electronic memory game: the user has to repeat a growing sequence of colors. The sequence is displayed by lighting up the LEDs. Each color also has a corresponding tone: G3, C4, E4 and G4 (about 200, 267, 320 and 400 Hz).
In each turn, the game will play the sequence, and then wait for the user to repeat the sequence by pressing the buttons according to the color sequence. If the user repeated the sequence correctly, the game plays a short rising tune (C4 E4 G4 C5), adds a new color at the end of the sequence, and moves to the next turn. The sequence grows up to 63 colors; after that, each turn replays the same 63 colors.
A wrong press ends the game at once: the LEDs blink while the game plays a falling tune (G4 E4 C4 G3) and a low buzz. Pressing several buttons at once counts as a wrong press. After the buzz, the LEDs show the power-on chase again, and the next button press starts a new game.
The time of the first button press picks one of 255 different games.
This is a micro tile version of urish/tt-simon-game. A micro tile has no bidirectional pins, so there is no score display, and there is no internal clock: the game runs from a 3.2 kHz clock on clk.
Provide a 3.2 kHz clock, reset the game, press any button to start it, and enjoy!
btn1, btn2, btn3, and btn4.
Also connect each button to a pull down resistor.led1, led2, led3, and led4, matching
the colors of the buttons (so led1 and btn1 have the same color, etc.).
Don't forget current-limiting resistors!speaker pin (optional).The Simon Says Pmod works for the buttons, LEDs and buzzer; its 7-segment display stays dark.
Simon Says Pmod or four push buttons (with pull-down resistors), four LEDs, and optionally a speaker/buzzer.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | btn1 | led1 | |
| 1 | btn2 | led2 | |
| 2 | btn3 | led3 | |
| 3 | btn4 | led4 | |
| 4 | speaker | ||
| 5 | |||
| 6 | |||
| 7 |