Last active
January 20, 2019 23:28
-
-
Save blister/fa467eecf785acfff1d11f745b05e7db to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void playNote(int note, int duration, float rest) { | |
digitalWrite(led, HIGH); | |
tone(buzzer, note, duration); | |
delay((duration * rest)/2); | |
digitalWrite(led, LOW); | |
delay((duration * rest)/2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment