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

}

void loop() {
  /*
  * temporary - use a button to simulate receiving an arming message over I2C
  */
  armingButtonState = digitalRead(armingPin);
  if (armingButtonState == HIGH) {
    //receiveData(1);
    armForCountdown();
  }
  
  triggerState = digitalRead(triggerPin);
  if (triggerState == HIGH && systemArmed && triggerReady) {

void receiveData(int numBytes) {
  while (Wire.available()) {
    // capture the data and decide which command it represents
    inCode = Wire.read();
    switch (inCode) {
      case 1:
        armBeforeCountdown();
        break;
      case 2:
        disarmAfterCountdown();
        break;
      default:
        /*
        * temporary
        */
        lcd.clear();
        lcd.print("Unrecognized cmd");
    }
  }
}

void sendData() {
  // send the outgoing code
  Wire.write(outCode);
}

void armBeforeCountdown() {
  if (!systemArmed) {
    systemArmed = true;
    triggerReady = true;
