Skip to content

Instantly share code, notes, and snippets.

@shrekster2
Last active June 27, 2018 01:20
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 shrekster2/23a1eab81720f3695f34d7fc74cae2b7 to your computer and use it in GitHub Desktop.
Save shrekster2/23a1eab81720f3695f34d7fc74cae2b7 to your computer and use it in GitHub Desktop.
heres somethin you wish you never downloaded..
Get your little piezo buzzer and connect the - to gnd on redboard and connect + to pin 13 on redboard
import code on the arduino project in the arduino software (preferably new project) and CTL+C and CTL+V on arduino software.
lazily put together code here:
void setup() {
pinMode(13, OUTPUT);
}
void loop() {
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13,999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(500);
tone(13, 999);
delay(350);
tone(13,999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(750);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13,999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(350);
tone(13,999);
delay(350);
tone(13, 999);
delay(350);
tone(13, 999);
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment