Leds unexpected behaviour

Hi

I tried something new with arduino and the leds does not switch as expected.

The leds should light up one after each other and stay on.

But every next led that lights up--the previous led goes off.

void setup() {
 
  DDRD = 0XFF;
  DDRC = 0XFF;

  PORTC = 0X00;
  PORTD = 0X00;

  delay(1000);

  PORTC = 0XFF;
  PORTD = 0XFF;

  delay(1000);

  PORTC = 0X00;
  PORTD = 0X00;
  
  delay(1000);
}

// the loop function runs over and over again forever
  void loop() 

 int delay1 = 500;
 
  PORTD = (1<<PD0);
  delay(delay1);

  PORTD = (1<<PD1);
  delay(delay1);

  PORTD = (1<<PD2);
  delay(delay1);

  PORTD = (1<<PD3);
  delay(delay1);

  PORTD = (1<<PIN4);
  delay(delay1);

  PORTD = (1<<PIN5);
  delay(delay1);

  PORTD = (1<<PIN6);
  delay(delay1);

  PORTD = (1<<PIN7);
  delay(delay1);

}

Please help. :o

Bitwise OR.

Thanks

Thats what happens when one play around late at night,this character '' | '' on my key board becomes

invisible.

You are welcome.