I want the sequence of blinking the lights before waiting for input from the push button to repeat after the push button has been pushed and the response has been executed. Basically the cycle would start all over from setup after this happens so I want to make the initial blink sequence into a function so I can just recall it in the loop section. Any tips or guidance?
I was able to figure this out; thank you so much guys. Mods may close this.
I figured out I just needed to type the function's name without int or void in order to call the function.
Well done for sorting out your own problem, ++Karma;
Now please study blink without delay, which is in the examples in the IDE under digital and apply the lessons learnt to your code. Delay might be working OK for you now in simple code, but the more complex your code gets the more delay will cause you problems.
In answer to the question "my code is not very responsive and I don't know why", which you will be asking in a month or 3; "It's because of all the delays".