#define F_CPU 16000000UL
#include<avr/io.h>
#include<util/delay.h>
int main(){
DDRB |= (1 << 0) | (1 << 1) | (1 << 2);
DDRD |= (1 << 6) | (1 << 7);
DDRC |= (1 << 5) | (1 << 4);
while(1){
PORTD &= ~(1<<PORTD7);
PORTC |= (1<<PORTC4);
_delay_ms(500);
PORTC &= ~(1<<PORTC4);
PORTC |= (1<<PORTC5);
_delay_ms(500);
PORTC &= ~(1<<PORTC5);
PORTB |= (1<<PORTB0);
_delay_ms(500);
PORTB &= ~(1<< PORTB0);
PORTB |= (1<<PORTB1);
_delay_ms(500);
PORTB &= ~(1<< PORTB1);
PORTB |= (1<<PORTB2);
_delay_ms(500);
PORTB &= ~(1<< PORTB2);
PORTD |= (1<<PORTD6);
_delay_ms(500);
PORTD &= ~(1<< PORTD6);
PORTD |= (1<<PORTD7);
_delay_ms(500);
}
}