int ledred1 = 7;
int ledred2 = 6;
int ledgreen = 5;
int buzzer = 10;
void setup() {
// put your setup code here, to run once:
pinMode(ledred1, OUTPUT);
pinMode(ledred2, OUTPUT);
pinMode(ledgreen, OUTPUT);
pinMode(buzzer, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
digitalWrite(ledred1, HIGH);
delay(250);
digitalWrite(ledred2, HIGH);
delay(250);
tone(buzzer,1000);
digitalWrite(ledgreen,HIGH);
delay(500);
noTone(buzzer);
digitalWrite(ledgreen, LOW);
delay(250);
digitalWrite(ledred2, LOW);
delay(250);
digitalWrite(ledred1,LOW);
delay(250);
}