Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function setup() { }
- function loop() {
- // Use the tone(pin, frequency, duration) function where
- // pin is the pin on which to generate tone: 9,
- // frequency is the frequency of the tone (Hz): 1000,
- // duration is the duration of which the tone lasts (milliseconds): 2000,
- tone(9, 1000, 5000);
- // Use the delay(duration) function to specify the duration
- // between 2 consecutive tones
- <Delay 2 seconds>;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement