Created
December 18, 2018 22:03
-
-
Save blippy/e5e6f37c64f18c2624b457ad28b18280 to your computer and use it in GitHub Desktop.
airport ringtone for aduino
This file contains hidden or 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
| 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