Last active
May 19, 2017 18:32
-
-
Save anotherlab/c3e2ebe72020a6df44902434e614687a to your computer and use it in GitHub Desktop.
C code to play the opening notes of "The Final Countdown" on an Elatec TWN4 RFID reader
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 FinalCountDown(void) | |
{ | |
int v = 100; | |
int duration = 125; | |
Beep(v, CS5, duration, 10); | |
Beep(v, B4, duration, 10); | |
Beep(v, CS5, duration*4, 10); | |
Beep(v, FS3, duration*5, duration*5); | |
Beep(v, D5, duration, 10); | |
Beep(v, CS5, duration, 10); | |
Beep(v, D5, duration*2, 10); | |
Beep(v, CS5, duration*2, 10); | |
Beep(v, B4, duration*3, 10); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment