Skip to content

Instantly share code, notes, and snippets.

@blippy
Created December 18, 2018 22:03
Show Gist options
  • Select an option

  • Save blippy/e5e6f37c64f18c2624b457ad28b18280 to your computer and use it in GitHub Desktop.

Select an option

Save blippy/e5e6f37c64f18c2624b457ad28b18280 to your computer and use it in GitHub Desktop.
airport ringtone for aduino
constexpr auto spk = A0;
void setup() {
// put your setup code here, to run once:
pinMode(spk, OUTPUT);
}
void tn(unsigned long f) {
tone(spk, f);
delay(300);
noTone(spk);
delay(55);
}
void loop() {
tn(267);
tn(328);
tn(394);
tn(532);
delay(1500);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment