const int buzzer = 5; //buzzer to arduino pin 5
void setup(){
pinMode(buzzer, OUTPUT); // Set buzzer - pin 5 as an output
}
void loop(){
tone(buzzer,1000);
delay(500);
noTone(buzzer);
delay(500);
}
const int buzzer = 5; //buzzer to arduino pin 5
void setup(){
pinMode(buzzer, OUTPUT); // Set buzzer - pin 5 as an output
}
void loop(){
tone(buzzer,1000);
delay(500);
noTone(buzzer);
delay(500);
}