#define F_CPU 16000000UL
#include<avr/io.h>
#include<util/delay.h>
int main(){
DDRB |= (1 << 1);
DDRD |= (1 << 5);
DDRC |= (1 << 2);
while(1){
PORTD &= ~(1<<PORTD5);
PORTB &= ~(1<<PORTB1);
PORTC &= ~(1<<PORTC2);
_delay_ms(2000);
PORTB |= (1<<PORTB1);
_delay_ms(2000);
PORTB &= ~(1<<PORTB1);
PORTD |= (1<<PORTD5);
_delay_ms(2000);
PORTB |= (1<<PORTB1);
_delay_ms(2000);
PORTD &= ~(1<<PORTD5);
PORTB &= ~(1<<PORTB1);
PORTC |= (1<<PORTC2);
_delay_ms(2000);
PORTB |= (1<<PORTB1);
_delay_ms(2000);
PORTB &= ~(1<<PORTB1);
PORTD |= (1<<PORTD5);
_delay_ms(2000);
PORTB |= (1<<PORTB1);
_delay_ms(2000);
}
}