int buzzerPin = 8;
void setup() {
// put your setup code here, to run once:
pinMode(buzzerPin, OUTPUT);
tone(buzzerPin, 1000, 2000);
}
void loop() {
// put your main code here, to run repeatedly:
// These tones start from this "delay" values upward.
// The frequency of the tones can be any value between these ones or up.
// tone(buzzerPin, 440); // A4
// delay(4);
// tone(buzzerPin, 494); // B4
// delay(3);
// tone(buzzerPin, 523); // C4
// delay(3);
tone(buzzerPin, 587); // D4
delay(3);
// tone(buzzerPin, 659); // E4
// delay(3);
// tone(buzzerPin, 698); // F4
// delay(3);
// tone(buzzerPin, 784); // G4
// delay(2);
noTone(buzzerPin);
delay(1000);
}