I want to do is BEEP! to show that the program is running.
#define SPKR 4 //this is the digital pin that you plugged the red wire into
void setup()
{
pinMode(SPKR, OUTPUT); //set the speaker as output
}
void loop() //do this over and over
{
digitalWrite(SPKR, HIGH); //turn the speaker on
delay(500); //wait for half a second
digitalWrite(SPKR, LOW); //turn the speaker off
delay(500); //wait for half a second
}
With out this any other way I mean without repeating the code HIGH / LOW during this beep I want do same things else