   * temporary - setup and test lcd
   */
   lcd.begin(16, 2);
-  lcd.print("Online");
+  printStatus();
   
   /*
   * temporary

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

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

void sendData() {
  systemArmed = false;
  
  /*
  * temporary
  */
  printStatus();
}

// nonblocking countdown timer
void countdown() {
  /*
  * temporary
  */
  lcd.clear();
  
  long curr = millis();
  long delta = millis() - curr;
  while ((interval - delta) >= 0) {
    /*
    * temporary
    */
    lcd.setCursor(0, 0);
    lcd.print((((interval - delta)) / 1000) + 1);
    
    delta = millis() - curr;
  }
  sendData();
}

/*
* temporay - print system state to lcd display
*/
void printStatus() {
  lcd.setCursor(0,0);
  lcd.print("System armed:  ");
  lcd.print(systemArmed);
  lcd.setCursor(0,1);
  lcd.print("Trigger ready: ");
  lcd.print(triggerReady);
}

