/* * main.c * * Created: 2/10/2021 11:45:42 AM * Author: Sem */ #include #include #include #include void wait( int ms ) { for (int i=0; i 15 || num < 0) num = 14; PORTA = Characters[num]; } int main(void) { initDisplay(); setDisplay(0); /* Replace with your application code */ // Init I/O DDRD = 0b00000000; // Init Interrupt hardware EICRA |= 0b00001010; // INT2 falling edge, INT1 rising edge EIMSK |= 0b00000011; // Enable INT1 & INT0 PORTC = 0x01; // init the first bit sei(); // enable input mechanism while(1) { if((PIND == 0b00000011) && (count != 0)){ count = 0; setDisplay(count); } } }