const int buzzerPin = 8;
const int noteFrequency = 440;
void setup() {
pinMode(buzzerPin, OUTPUT);
}
void loop() {
tone(buzzerPin, noteFrequency);
delay(1000);
noTone(buzzerPin);
delay(500);
}
const int buzzerPin = 8;
const int noteFrequency = 440;
void setup() {
pinMode(buzzerPin, OUTPUT);
}
void loop() {
tone(buzzerPin, noteFrequency);
delay(1000);
noTone(buzzerPin);
delay(500);
}