#ifndef F_CPU #define F_CPU 8000000UL #endif #include #include #include int main(void) { PORTD &= (uint8_t)~(1U << PD0); DDRD |= (1U << PD0); while (1) { PORTD ^= (1U << PD0); _delay_ms(500); /* 500 ms on + 500 ms off = 1 Hz */ } }