#define LED 13 // The pin the LED is connected to
#define BUZ 12 // The pin the LED is connected to
void setup() {
pinMode(LED, OUTPUT); // Declare the LED as an output
pinMode(BUZ, OUTPUT); // Declare the LED as an output
}
void loop() {
digitalWrite(LED, HIGH); // Turn the LED on
tone(BUZ, 1000); // Send 1KHz sound signal...
delay(1000);
digitalWrite(LED, LOW); // Turn the LED on
noTone(BUZ); // Stop sound...
delay(1000);
}