void setup() {
DDRB |= (1 << PB0) | (1 << PB1) | (1 << PB2);
DDRD |= (1 << PD0) | (1 << PD1) | (1 << PD2);
}
void loop() {
PORTB |= (1 << PB0);
PORTB &= ~((1 << PB1) | (1 << PB2));
PORTD |= (1<<PD2);
delay(20000);
PORTB |= (1 << PB1);
PORTB &= ~ ((1 << PB0) | (1 << PB2));
PORTD |= (1 << PD1);
PORTD &= ~ ((1 << PD0) | (1 << PD2));
delay(2000);
PORTB |= (1 << PB2);
PORTB &= ~ ((1 << PB0) | (1 << PB1));
PORTD |= (1 << PD0);
PORTD &= ~ ((1 << PD1) | (1 << PD2));
delay(20000);
PORTD |= (1 << PD1);
PORTD &= ~ ((1 << PD0) | (1 << PD2));
PORTB |= (1 << PB1);
delay(2000);
}