avoiding delay

{
digitalWrite (FLEDd, HIGH);
digitalWrite (FLEDe, LOW);
digitalWrite (FLEDf, LOW);
digitalWrite (FLEDa, LOW);
digitalWrite (SLEDa, LOW);
digitalWrite (SLEDb, LOW);
digitalWrite (SLEDc, LOW);
digitalWrite (SLEDd, LOW);
digitalWrite (FLEDb, LOW);
digitalWrite (FLEDg, LOW);
digitalWrite (FLEDc, LOW);
digitalWrite (SLEDf, LOW);
digitalWrite (SLEDg, LOW);
digitalWrite (SLEDe, LOW);

delay(1000);
digitalWrite (FLEDd, LOW);
digitalWrite (FLEDe, HIGH);
digitalWrite (FLEDf, LOW);
digitalWrite (FLEDa, LOW);
digitalWrite (SLEDa, LOW);
digitalWrite (SLEDb, LOW);
digitalWrite (SLEDc, LOW);
digitalWrite (SLEDd, LOW);
digitalWrite (FLEDb, LOW);
digitalWrite (FLEDg, LOW);
digitalWrite (FLEDc, LOW);
digitalWrite (SLEDf, LOW);
digitalWrite (SLEDg, LOW);
digitalWrite (SLEDe, LOW);

delay(1000);
digitalWrite (FLEDd, LOW);
digitalWrite (FLEDe, LOW);
digitalWrite (FLEDf, HIGH);
digitalWrite (FLEDa, LOW);
digitalWrite (SLEDa, LOW);
digitalWrite (SLEDb, LOW);
digitalWrite (SLEDc, LOW);
digitalWrite (SLEDd, LOW);
digitalWrite (FLEDb, LOW);
digitalWrite (FLEDg, LOW);
digitalWrite (FLEDc, LOW);
digitalWrite (SLEDf, LOW);
digitalWrite (SLEDg, LOW);
digitalWrite (SLEDe, LOW);

delay(1000);
digitalWrite (FLEDd, LOW);
digitalWrite (FLEDe, LOW);
digitalWrite (FLEDf, LOW);
digitalWrite (FLEDa, HIGH);
digitalWrite (SLEDa, LOW);
digitalWrite (SLEDb, LOW);
digitalWrite (SLEDc, LOW);
digitalWrite (SLEDd, LOW);
digitalWrite (FLEDb, LOW);
digitalWrite (FLEDg, LOW);
digitalWrite (FLEDc, LOW);
digitalWrite (SLEDf, LOW);
digitalWrite (SLEDg, LOW);
digitalWrite (SLEDe, LOW);

delay(1000);
digitalWrite (FLEDd, LOW);
digitalWrite (FLEDe, LOW);
digitalWrite (FLEDf, LOW);
digitalWrite (FLEDa, LOW);
digitalWrite (SLEDa, HIGH);
digitalWrite (SLEDb, LOW);
digitalWrite (SLEDc, LOW);
digitalWrite (SLEDd, LOW);
digitalWrite (FLEDb, LOW);
digitalWrite (FLEDg, LOW);
digitalWrite (FLEDc, LOW);
digitalWrite (SLEDf, LOW);
digitalWrite (SLEDg, LOW);
digitalWrite (SLEDe, LOW);

delay(1000);
digitalWrite (FLEDd, LOW);
digitalWrite (FLEDe, LOW);
digitalWrite (FLEDf, LOW);
digitalWrite (FLEDa, LOW);
digitalWrite (SLEDa, LOW);
digitalWrite (SLEDb, HIGH);
digitalWrite (SLEDc, LOW);
digitalWrite (SLEDd, LOW);
digitalWrite (FLEDb, LOW);
digitalWrite (FLEDg, LOW);
digitalWrite (FLEDc, LOW);
digitalWrite (SLEDf, LOW);
digitalWrite (SLEDg, LOW);
digitalWrite (SLEDe, LOW);

delay(1000);
digitalWrite (FLEDd, LOW);
digitalWrite (FLEDe, LOW);
digitalWrite (FLEDf, LOW);
digitalWrite (FLEDa, LOW);
digitalWrite (SLEDa, LOW);
digitalWrite (SLEDb, LOW);
digitalWrite (SLEDc, HIGH);
digitalWrite (SLEDd, LOW);
digitalWrite (FLEDb, LOW);
digitalWrite (FLEDg, LOW);
digitalWrite (FLEDc, LOW);
digitalWrite (SLEDf, LOW);
digitalWrite (SLEDg, LOW);
digitalWrite (SLEDe, LOW);

delay(1000);
digitalWrite (FLEDd, LOW);
digitalWrite (FLEDe, LOW);
digitalWrite (FLEDf, LOW);
digitalWrite (FLEDa, LOW);
digitalWrite (SLEDa, LOW);
digitalWrite (SLEDb, LOW);
digitalWrite (SLEDc, LOW);
digitalWrite (SLEDd, HIGH);
digitalWrite (FLEDb, LOW);
digitalWrite (FLEDg, LOW);
digitalWrite (FLEDc, LOW);
digitalWrite (SLEDf, LOW);
digitalWrite (SLEDg, LOW);
digitalWrite (SLEDe, LOW);

delay(500);

}

this is my code, is there anyway i can avoid delay? because i need to use some other functions too.

Study blink without delay.

Also why don't you use an array with the pins number and why do you repeat the LOW command for an output that is already LOW - you could just put LOW The one that was HIGH and put HIGH the next one;

The demo Several Things at a Time is an extended example of BWoD and illustrates the use of millis() to manage timing. It may help with understanding the technique.

...R

And then, next up, arrays :smiley:

septillion:
And then, next up, arrays :smiley:

maybe arrays first!

naveen4394:
this is my code

Or to put it another way,

this is some of my code

BulldogLowell:
maybe arrays first!

maybe code tags before that?