#define BUZZER 8
#define LED 9
void setup() {
pinMode(BUZZER, OUTPUT);
pinMode(LED, OUTPUT);
}
void loop() {
tone(BUZZER, 330);
digitalWrite(LED, HIGH);
delay(300);
tone(BUZZER, 330);
delay(300);
tone(BUZZER, 349);
delay(300);
tone(BUZZER, 392);
delay(300);
tone(BUZZER, 392);
delay(300);
tone(BUZZER, 349);
delay(300);
tone(BUZZER, 330);
delay(300);
tone(BUZZER, 294);
delay(300);
tone(BUZZER, 262);
delay(300);
tone(BUZZER, 262);
delay(300);
tone(BUZZER, 294);
delay(300);
tone(BUZZER, 330);
delay(300);
tone(BUZZER, 330);
delay(450);
tone(BUZZER, 294);
delay(600);
noTone(BUZZER);
digitalWrite(LED, LOW);
delay(1000);
}