Skip to content

Instantly share code, notes, and snippets.

@Ed7527
Created September 3, 2017 05:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ed7527/0cecef015da7d5f3c5711bf48fb0ce4a to your computer and use it in GitHub Desktop.
Save Ed7527/0cecef015da7d5f3c5711bf48fb0ce4a to your computer and use it in GitHub Desktop.
Human Music setup pin 2 as output
void setup() {
// put your setup code here, to run once:
pinMode(2, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
//c
tone(2, 262, 100);
//pause
delay(400);
//d
tone(2, 294, 100);
//pause
delay(400);
//c
tone(2, 262, 100);
//pause
delay(800);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment