First off, Thanks very much to AWOL and brtech for the prompt help with my earlier question
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1274292639/0#0ive managed to get my code to a usable point...i just repeated my sequence 18 times and put a big delay at the end, its been running fine and ive only used about 5500 bytes of memory...but now on to my next problem:
Since I am working with two separate arduinos running two different codes, I now need help figuring how to cycle the second adruino... I am using arduinos to control an electronic switch which is cycling lights on and off in morse code....and I want the morse sequence to run for 5 minutes and then turn off for 10 minutes, then run for 5 minutes..etc...I have the morse code sequence figured out...i just need to get it to cycle on and off...
my problem now is how to get the following bit of code to run for 5 minutes, then pause for 10 minutes, then run for 5..etc..
The code is meant to generate random morse code...either dots or dashes... it works great, i just dont have any idea how i can make it cycle on and off like i have described...
Any and all help would be much appreciated!!!!
Thank you, Don

int pin = 12;
long randOn = 0;
void setup()
{
pinMode(pin, OUTPUT);
}
void loop()
{
}
randOn= random(0,10);
if (randOn > 5) {
digitalWrite(pin, HIGH);
delay(100);
digitalWrite(pin, LOW);
delay(100);
}
else
{digitalWrite(pin, HIGH);
delay(400);
digitalWrite(pin, LOW);
delay(100);
}
}