Skip to content

Instantly share code, notes, and snippets.

@hmcurran
Created February 23, 2021 22:39
Show Gist options
  • Save hmcurran/319d1d146f821d74e002ab834ce6f871 to your computer and use it in GitHub Desktop.
Save hmcurran/319d1d146f821d74e002ab834ce6f871 to your computer and use it in GitHub Desktop.
/* Author: Hannah Curran
* Date: Feburary 21, 2021
* Class: OBJECT
* Title: Lab 5 Part 1 Code
* Description: Code that tests passive buzzer
*/
void setup() {
// No code needed here
}
void loop() {
// Play the tone at 1000 Hz for half of a second (500 milliseconds)
tone(8,1000, 500);
// Delay for one second before playing tone again
delay(1000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment