     */
     printStatus();
   }
+}
+
+void disarmAfterCountdown() {
+  systemArmed = false;
+  
+  /*
+  * temporary
+  */
+  printStatus();
+  
+  outCode = 2;
 }
 
 // nonblocking countdown timer

  lcd.begin(16, 2);
  printStatus();
  
  /*
  * temporary
  */
  pinMode(armingPin, INPUT);
  
  // set the armedPin to OUTPUT
  pinMode(armedPin, OUTPUT);
  

  lcd.setCursor(15, 0);
  lcd.print(" ");
  
  outCode = 1;
}

/*
* temporay - print system state to lcd display
*/
void printStatus() {
  lcd.clear();
  lcd.print("Sys. armed:  ");
  lcd.print(systemArmed);
  lcd.setCursor(0, 1);
