     delayMicroseconds(10);  // delay 10 microseconds to allow multiplexer to stabilize.
     return analogRead(analogInPin);
 }
-
-// Pin for status LED.
-const int ledPin = 9;
 
 // Type of LED modes.
 const byte LED_ON = 0; // on solid

  pinMode(multiplexBit2Pin, OUTPUT);
  pinMode(multiplexBit3Pin, OUTPUT);
  pinMode(ledPin, OUTPUT);
  
  setLedMode(LED_ON, 0);
}

void loop() {
    updateLed();

    for (int i = 0; i < inputCount; ++i) {
      

/*
  Laser Harp monitoring via Arduino.
  
  Monitors the inputs of 8 photoresistors that detect lasers, multiplexed via
  a 74HC5067 IC and read by the Arduino analog input.
  
  Sends output via serial with the following format:
    57600 baud, 8 data bits, 1 stop.
    
    Sends "~" to start, indicating that data follows.
    While monitoring, sends "~" character every second as a heartbeat.
    Sends character "A" - "H" when laser beam is interrupted.
    Sends character "a" - "h" when laser beam is restored.
    
    Sends character "@" to indicate that debugging information is being output. After
    "@" is received, all input should be ignored until a "~" is received.
 */

// These constants won't change.  They're used to give names
