Guest User

Untitled

a guest
Jan 21st, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. void playNote(int note, int duration, float rest) {
  2. digitalWrite(led, HIGH);
  3. tone(buzzer, note, duration);
  4. delay((duration * rest)/2);
  5. digitalWrite(led, LOW);
  6. delay((duration * rest)/2);
  7. }
Add Comment
Please, Sign In to add comment