int main(){
DDRD &= ~(1<<2);// Interrupt pin:
DDRC |= (1<<0); // output_LED:
//EICRA |= (1<<0);// any logical change causes interrupt:
//EICRA |= (1<<1); // falling edge:
//EICRA |= (3<<0);// rising edge:
EICRA = 0;// low level:
EIMSK |= (1<<0);
EIFR |= (1<<0);
sei();// SREG:
while(1){

 }
}
ISR(INT0_vect){
  if(!(PIND & (1<<2))){
     PORTC |= (1<<0); // LED_out:
  }else{PORTC &= ~(1<<0);}
}