#define BUZZER_PIN 13
void setup() {
Serial.begin(115200);
Serial.println("Buzzer Test");
pinMode(BUZZER_PIN, OUTPUT);
}
void loop() {
delay(2000);
Serial.println("Playing first tone: 1000 Hz");
tone(BUZZER_PIN, 1000);
delay(2400);
noTone(BUZZER_PIN);
delay(2500);
Serial.println("Playing second tone: 1500 Hz");
tone(BUZZER_PIN, 1500);
delay(2600);
noTone(BUZZER_PIN);
delay(2700);
Serial.println("Playing third tone: 2000 Hz");
tone(BUZZER_PIN, 2000);
delay(2800);
noTone(BUZZER_PIN);
delay(3000);
}