Advertisement
waterforce1205

Untitled

Aug 21st, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. function setup() { }
  2.  
  3. function loop() {
  4.     // Use the tone(pin, frequency, duration) function where
  5.     // pin is the pin on which to generate tone: 9,
  6.     // frequency is the frequency of the tone (Hz): 1000,
  7.     // duration is the duration of which the tone lasts (milliseconds): 2000,
  8.     tone(9, 1000, 5000);
  9.     // Use the delay(duration) function to specify the duration
  10.     // between 2 consecutive tones
  11.     <Delay 2 seconds>;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement