   }*/ 
 
   delay(500);
+
+  //setup photointerrupter vals
+  for (int i = 0; i < 2; i++)
+  { PIStates[i] = digitalRead(PHOTO_INTERRUPTER_PINS[i]); lastStates[i] = PIStates[i]; }
 }
 
 void loop() {

    Serial.print(String(inputNum + 1));
    Serial.print(F(" taken: "));
    Serial.println(String(pelletCount[inputNum]));
  }
  else if (PIStates[inputNum] == 1) {
    //need to replace pellet

  Serial.begin(9600);
  Serial.println(F("Starting up..."));

  //display initialization and setup
  LEDserial.begin(9600); 
  pinMode(DISPLAY_SERIAL_TX_PIN, OUTPUT);
  setDisplayBrightness(64);
  updateDisplay();

  //some stuff
  pinMode(10, OUTPUT); //CS pin
  pinMode(SS, OUTPUT);

  //motor shield stuff
  

