 const int motorPWMPin = 9;
 
 // end-stop switches, active-low
+// Panasonic AZ7121
 const int switchFront = 3; // front is at the closed position
 const int switchFrontIRQ = 1; // TODO: maybe use interrupts & sleep
 

  debug(currentMillis, F("Elapsed millis: "));
  Serial.println(elapsedMillis);
*/

  // fast debounce driver error signals to filter short glitches
  debounce(motorDiagAPin, &motorDiagA, &motorDiagADeglitch, &motorDiagADebounce);


  if (swTrigger == LOW || (swFront == LOW && swBack == LOW)) {
    doorState = doorError;
    setLeds1(blue, ledSolid);
    Serial.print(F("ERROR\r\n"));
  } else if (swFront == LOW) {
    doorState = doorClosed;
