#define F_CPU 8'000'000UL #include #include #include int main() { // Leds DDRB = 0xff; PORTB = 0x00; // Buttons DDRD = 0x00; PORTD = 0xff; while(true) { PORTB = ~PIND & 0x7f; } }