// main.c #include #include // numero di stati #define STATI_MAX 4 // debounce milliseconds #define DEB_MSEC 20 // blinking period #define BLINK_PERIOD 1000 // configurazione LED #define LED2_PORT PORTC #define LED2_DDR DDRC #define LED2_PP (1< 0) { stato--; } _delay_ms(DEB_MSEC); while(key_dn_prsd()) { // attesa relascio } _delay_ms(DEB_MSEC); } // uscita LED_out(stato); } return(0); // mai raggiunto } // eof main.c