   * temporary
   */
   pinMode(armingPin, INPUT);
+  
+  // set the armedPin to OUTPUT
+  pinMode(armedPin, OUTPUT);
+  
+  // set the triggerPin to INPUT
+  pinMode(triggerPin, INPUT);
 }
 
 void loop() {

*/
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
const char armingPin = 6;
char armingButtonState = 0;

// the controller must be armed by an I2C message before the user button will be
// activated. Once armed the system cannot be armed again until after a
// countdown and I2C send
boolean systemArmed = false;

void setup() {
  // start I2C slave

  if (armingButtonState == HIGH) {
    receiveData(1);
  }
  
  triggerState = digitalRead(triggerPin);
  if (triggerState == HIGH && systemArmed) {
    systemArmed = false;
    digitalWrite(armedPin, LOW);
    countdown();
  }
}

void receiveData(int numBytes) {
  if (!systemArmed) {
    systemArmed = true;
    digitalWrite(armedPin, HIGH);
    /*
    * temporary
    */
