HELP !! on multiple blinking led lights.

Hi all, I im a newbie with this.I have an Arduino mini pro, I want to assign different pins from 2,3,5, there is no #4 pin, I want some leds to blink at different intervals, but when I assign different pins they dont seem to blink the way I want them to. can you see this code I uploaded? does it look correct.

void setup() {

pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(5, OUTPUT);

}

void loop() {

digitalWrite(2, HIGH);
delay(500); it will start here
digitalWrite(2, LOW);
delay(500);

digitalWrite(3, HIGH);
delay(500);
digitalWrite(3, LOW); then here
delay(500);

digitalWrite(5, HIGH);
delay(50);
digitalWrite(5, LOW);
delay(50); finish here and start from the top again.
digitalWrite(5, HIGH); thats not what im looking for. This is why
delay(50); assinged different pins on the Arduino mini.
digitalWrite(5, LOW); could you help. I would like all leds to work
delay(50); separately.
}

johnnygreeko:
they dont seem to blink the way I want them to.

Without telling us you want, there's no way for us to make any suggestions. What does the code do when you run it? What do you want it to do?

Also, use [ code ] tags next time. The forum software can eat some of your code and turn it into smileys. 8)

does it look correct

Your code looks correct :wink: It even compiles after removing the additional text that you have put in.

Your code will currently happily do all the led actions in sequence. If you don't want them in sequence, you need to study the blink-without-delay example and read e.g. Demonstration code for several things at the same time; as mentioned in the reply to your other post, you can not use delay in that case.