int ledPin = 13;
int buzzerPin = 4;
void setup() {
// put your setup code here, to run once:
pinMode(ledPin,OUTPUT);
pinMode(buzzerPin, OUTPUT);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
for(int i =0;i<=10;i++)
{
digitalWrite(ledPin,HIGH);
digitalWrite(buzzerPin, HIGH);
delay(1000);
Serial.println("ON");
digitalWrite(ledPin,LOW);
digitalWrite(buzzerPin, LOW);
delay(2000);
Serial.println("OFF");
}
}