neon needs help

hey guys.

need help with my neons.

how can i say to pin 9, that the loop should run for 10 seconds, wait then for 10seconds and start again?

sorry for this simple question. it’s my first time doing an installation with arduino.

code:

int relais[6] = {6,5,4,3,2,1};
int pins[6] = {0,1,6,7,8,9};
int pinState[6] = {LOW,LOW,LOW,LOW,LOW,LOW};
int timer_01 = 0;
int counts_01 = 1; //schläge
int timer_011 = 0;
int counts_011 = 1;

void setup()
{
Serial.begin(9600);
//pinMode(0, INPUT);
//ULN2803A Darlington Treiber
for(int i = 0; i < 6; i++)
{
pinMode(pins*, OUTPUT);*
digitalWrite(pins_, pinState*);
}
}
void loop()
{_
if (counts_011 < 100000)
_ {*_

* if (counts_01 < 40){
if (timer_01 == 0){
_ digitalWrite(pins[6], HIGH);
}_
timer_01 ++;
if (timer_01 == 20000){
_ digitalWrite(pins[6], LOW);
}_
if (timer_01 == 22000){
timer_01 = 0;
counts_01 ++;
_ }
}*_

* if (counts_01 < 100){
if (timer_01 == 0){
_ digitalWrite(pins[6], HIGH);
}_
timer_01 ++;
if (timer_01 == 4000){
_ digitalWrite(pins[6], LOW);
}_
if (timer_01 == 4500){
timer_01 = 0;
counts_01 ++;
_ }
}*_

* if (counts_01 > 600){
timer_01 = 0;
counts_01 = 0;
_ }*_

* }*

}

First things first. Modify your post. Select all the code. Delete it. Select the # button.

Now, go back to the IDE. Use ctrl-T to format the code. Copy it (ctrl-a, ctrl-c) and paste if between the ] and the [.

Save the changes.

The forum software interprets [ i ] as starting to italicize text, unless the [ i ] appears between code tags. We can't tell where the forum software interpreted the [ i ] and where you left them out.

There are two ways to make code wait. One is to use the delay() function. There other is to use millis(), as explained in the blink without delay example.