Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void playNote(int note, int duration, float rest) {
- digitalWrite(led, HIGH);
- tone(buzzer, note, duration);
- delay((duration * rest)/2);
- digitalWrite(led, LOW);
- delay((duration * rest)/2);
- }
Add Comment
Please, Sign In to add comment