-
-
Save hmcurran/319d1d146f821d74e002ab834ce6f871 to your computer and use it in GitHub Desktop.
This file contains 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
/* 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