Control by time cycles

  1. Please edit your post to add [ code ] tags. The forum software eats some of your code if you don't.

 pinMode(7, OUTPUT);

You gave this pin a name. Use the name.

delay(0);

This does nothing. Why do you have so many nothings in your code?

  1. You are going to have to define the sequence a little more precisely. Do you want it to start when the button is first touched or when the button is released? What happens if the button is pushed again during the cycle? Is there going to be a STOP button?