 }
 
 void receiveData(int numBytes) {
+  while (Wire.available()) {
+    // capture the data and decide which command it represents
+    int code = Wire.read();
+    switch (code) {
+      case 1:
+        armForCountdown();
+      default:
+        /*
+        * temporary
+        */
+        lcd.clear();
+        lcd.print("Unrecognized cmd");
+        delay(5000);
+    }
+  }
+}
+
+void sendData() {
+  systemArmed = false;
+  
+  /*
+  * temporary
+  */
+  printStatus();
+}
+
+void armForCountdown() {
   if (!systemArmed) {
     systemArmed = true;
     triggerReady = true;

  */
  armingButtonState = digitalRead(armingPin);
  if (armingButtonState == HIGH) {
    receiveData(1);
  }
  
  triggerState = digitalRead(triggerPin);

    */
    printStatus();
  }
}

// nonblocking countdown timer
