int buzzerPin = 4;
int lightPin = 12;
void setup() {
pinMode(buzzerPin, OUTPUT);
pinMode(lightPin, OUTPUT);
}
void loop() {
digitalWrite(buzzerPin, HIGH);
digitalWrite(lightPin, HIGH);
delay(300);
digitalWrite(buzzerPin, LOW);
digitalWrite(lightPin, LOW);
tone(8, 262, 500);
delay(300);
}