RUNNING REVERSING DC MOTOR WITH 2 BLINKING LEDS

I AM TRYING TO RUN A 12VDC MOTOR FOR 10 SEC. CLOCKWISE--

THEN STOP IT FOR 3 SEC.--

THEN RUN IT COUNTERCLOCKWISE FOR 10 SEC.--

THEN STOP IT FOR 10 SEC.--

TRYING TO CONNECT GREEN BLINKING LED SO IT IS ON UNTIL END OF THE COUNTERCLOCKWISE RUN--

THEN HAVE RED BLINKING LED COME ON AND STAY ON THRU THE LAST 10 SEC.STOP

THEN REPEAT THIS SEQUENCE INDEFINITELY

I CAN GET THE MOTOR TO RUN AS NEEDED BUT AM UNABLE TO GET THE LEDS TO WORK AT ALL

ANY HELP WILL BE APPRECIATED

USING THE FOLLOWING CODE:

void setup()

//set pins to run motor

pinMode(7,OUTPUT);

pinMode(8,OUTPUT);

pinMode(9,OUTPUT);

//set pin for output for red led

pinMode(5,OUTPUT);

//set pin for output for green light

pinMode(3,OUTPUT);

void loop()

//turn blinking green light on

digitalWrite(3,HIGH);

delay(500);

digitalWrite(3,LOW);

delay(500);

//run motor cw for 10 sec

analogWrite(9,200);

digitalWrite(8,HIGH);

delay(10000);

digitalWrite(7,LOW);

delay(10000);

//stop motor for 3 sec.

digitalWrite(8,LOW);

digitalWrite(7,LOW);

delay(3000);

//run motor ccw for 10 sec.

analogWrite(9,200);

digitalWrite(8,LOW);

digitalWrite(7,HIGH);

delay(10000);

//green blinking led off

digitalWrite(3,LOW);

//red blinking led on

digitalWrite(5,HIGH);

delay(500);

digitalWrite(5,LOW);

delay(500);

//stop motor for 10 sec.

digitalWrite(8,LOW);

digitalWrite(7,LOW);

delay(10000);

//red blinking led off

digitalWrite(5,LOW);

Yikes!

Your post is SO hard to read, I need to get better glasses now. Check out the post named How to use this forum -- please read that you will find in every forum. That should help (from our angle.)

ps, if English is not your normal language, check out the language specific fora further down the list.

All caps is WRONG. We don't like to be SHOUTED at.

Use code tags.

Before posting your code, fix your indentation (CTRL-T in the IDE), and make sure it actually compiles. What you posted won't compile, so that's definitely not the code you're trying to get to work.

Then describe what it does and what it should do.