Ok, that about says it all. what I need is a timer() which is set to 30,000 ms. (30 seconds). when I push a button to test the lights on the landing system, there are nine of them. I want to do the following:
for (int count = 0; count < 9; count++ ){
digitalWrite( lamp[count], ON);}
timer = 300000 ms
return;
when timer = 0 set interrupt.
for (int count = 0; count < 9; count++ ){
digitalWrite( lamp[count], OFF);}
reset timer();
return;
That sound simple nope I don't want to stop what I am doing so a delay(30000) will not work.