int pinled1=13;
int pinled2=12;
int buzzerPin = 9;
void setup() {
pinMode(pinled1, OUTPUT);
pinMode(pinled2, OUTPUT);
pinMode(buzzerPin, OUTPUT);
}
void loop() {
blinktone(HIGH, LOW, 1000);
blinktone(LOW, HIGH, 500);
}
void blinktone(bool x, bool y, int z){
digitalWrite(pinled1, x);
digitalWrite(pinled2, y);
tone(buzzerPin, z);
delay(200);
}