One Button Simon
To start, the idea is to record a sequence of button presses (and releases) and have the arduino play back the pattern on the speaker.
Create a program to time how long the user presses a push button.
Starting code / circuit:
Make sure your pushbutton circuit is working.
The following pieces will be useful.
Print out a message (to the compute, use the Arduino Serial Monitor):
Get the current time(in milliseconds):
s = millis();
Write code to translate the presses from the user to a fixed pattern