Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup()
- {
- pinMode(13, OUTPUT);
- pinMode(8, OUTPUT);
- }
- void loop ()
- {
- digitalWrite(13, HIGH);
- tone(8, 523, 1000); // play tone 60 (C5 = 523 Hz)
- delay(1000); // Wait for 1000 millisecond(s)
- digitalWrite(13, LOW);
- delay(1000); // Wait for 1000 millisecond(s)
- digitalWrite(13, HIGH);
- tone(8, 523, 1000); // play tone 60 (C5 = 523 Hz)
- delay(1000); // Wait for 1000 millisecond(s)
- digitalWrite(13, LOW);
- delay(1000); // Wait for 1000 millisecond(s)
- digitalWrite(13, HIGH);
- tone(8, 523, 1000); // play tone 60 (C5 = 523 Hz)
- delay(1000); // Wait for 1000 millisecond(s)
- digitalWrite(13, LOW);
- delay(1000); // Wait for 1000 millisecond(s)
- digitalWrite(13, HIGH);
- tone(8, 523, 4000); // play tone 60 (C5 = 523 Hz)
- delay(4000); // Wait for 4000 millisecond(s)
- digitalWrite(13, LOW);
- delay(5000); // Wait for 5000 millisecond(s)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement