/*Write a program to interface buzzer with Arduino board
to buzz on/off with the delay
of 1sec*/
const int buzzer = 6;
void setup() {
// put your setup code here, to run once:
pinMode(buzzer, INPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(buzzer, HIGH);
tone(buzzer, 100);
delay(1000);
digitalWrite(buzzer, LOW);
noTone(buzzer);
delay(1000);
}