/* * Opdracht 2.2.c * * Created: 10-2-2021 10:58:13 * Author : Sem */ #define F_CPU 10e6 #include #include #include void wait( int ms ) { for (int i=0; i> 1; } int main(void) { /* Replace with your application code */ // Init I/O DDRD = 0xF0; // PORTD (7:4) is output, (3:0) is input DDRC = 0xFF; // Init Interrupt hardware EICRA |= 0x2C; // INT2 falling edge, INT1 rising edge EIMSK |= 0x06; // Enable INT2 & INT1 PORTC = 0x01; // init the first bit sei(); // enable input mechanism while (1) { } } void lcd_strobe_lcd_e(void) { PORTC |= (1<