Skip to content

Instantly share code, notes, and snippets.

@anotherlab
Last active May 19, 2017 18:32
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 anotherlab/c3e2ebe72020a6df44902434e614687a to your computer and use it in GitHub Desktop.
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
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