#include #include void portInit(void); void main(){ portInit(); while(1){ PORTA = PORTB = PORTC = PORTD = 0x00; _delay_ms(1000); PORTA = PORTB = PORTC = PORTD = 0xFF; _delay_ms(1000); } } void portInit(){ DDRA = 0xff; DDRB = 0xff; DDRC = 0xff; DDRD = 0xff; }