#define true 1 #define false 0 #define flashdetect PB2 // IN #define statusled PA4 // OUT #define fireled PA5 // OUT #define flashdetectDDR DDRB #define flashdetectport PORTB #define statusledDDR DDRA #define statusledport PORTA #define fireledDDR DDRA #define fireledport PORTA // Function prototypes /*------------------------------------------------------------------*/ void init(); int main(); void signal(uint8_t counter); void fire(void); /*------------------------------------------------------------------*/ // Variables uint8_t flashcount, flashesneeded;