int buzzerPin = 15;
void setup() {
pinMode (buzzerPin, OUTPUT);
Serial.begin(9600);
}
void loop() {
tone(buzzerPin, 1000, 1000);
delay (100);
noTone(buzzerPin);
delay (1000);
tone(buzzerPin, 1000, 1000);
delay (100);
}
int buzzerPin = 15;
void setup() {
pinMode (buzzerPin, OUTPUT);
Serial.begin(9600);
}
void loop() {
tone(buzzerPin, 1000, 1000);
delay (100);
noTone(buzzerPin);
delay (1000);
tone(buzzerPin, 1000, 1000);
delay (100);
}