Arduino Uno. Led isn't blinking

Hello everyone. Sorry for my English. I had Arduino Uno board and I have used it for some time. But one day I tried to blink again. I used this code:

int main(void) 
{ 
DDRB |=(1<<0);
while(1) 
{ 
PORTB |=(1<<0);
_delay_ms(1000); 
PORTB |=(0<<0);
_delay_ms(1000);
}
}

But it's not working. Led only lights. I'm tried to use arduino functions. I'm tried to change time. But after it's not working too.
I don't know what is my problem and so I decided to ask about this question. If you want I can send some pics.

A logic OR with 0x00 will not change any bits in PORTB.

Something like below will probably do what you want

int main(void)
{
  DDRB |=(1<<0);
  while(1)
  {
    PORTB |= 0x01;
    _delay_ms(1000);
    PORTB &= 0xFE;
    _delay_ms(1000);
  }
}

Lol, thank you,it was really problem with code, not with microcontroller:)

blaperdezh:
Lol, thank you,it was really problem with code, not with microcontroller:)

That's why a standard trouble shooting approach is to load known-good code like Blink or Blink without delay.