   portValue = portValue & portConfigInputs[portNumber];
   // only send if the value is different than previously sent
   if(forceSend || previousPINs[portNumber] != portValue) {
-    Serial.println(F("Sending update"));
+    Serial.print(F("Sending update for port ")); Serial.print(portNumber); Serial.print(" = 0x"); Serial.println(portValue, HEX);
     BLE_Firmata.sendDigitalPort(portNumber, portValue);
     previousPINs[portNumber] = portValue;
   }

    break;
  case INPUT:
    if (IS_PIN_DIGITAL(pin)) {
      Serial.println("input");
      pinMode(PIN_TO_DIGITAL(pin), INPUT); // disable output driver
      digitalWrite(PIN_TO_DIGITAL(pin), LOW); // disable internal pull-ups
      pinConfig[pin] = INPUT;
      
      // MEME update so we have an update report
      uint8_t tempport = pin/8;
      uint8_t temppin = reportPINs[tempport];
      reportDigitalCallback(tempport, temppin | (1<<(pin % 8)));
      //
    }
    break;
  case OUTPUT:

    BLEserial.write(Serial.read());

  }
  byte pin, analogPin;

  /* DIGITALREAD - as fast as possible, check for changes and output them to the
