 if (motorDiagA == HIGH && motorDiagB == HIGH) {
   setLeds1(red, ledSolid);
   doorState = doorBlocked;
-  digitalWrite(13, LOW);
+  digitalWrite(statusLED, LOW);
 } else {
-  digitalWrite(13, HIGH);
+  digitalWrite(statusLED, HIGH);
 }
       break;
   }

          initDrive(backward, accelProfileHigh);
          swTrigger = HIGH; // re-arm swTrigger
        }
        setLeds2(white, black, 3, ledBackward);
        doorState = doorOpening;
      }
      break;

}


/* motor driver */

// global motor direction variable, required for PWM-brake & coasting
// TODO: PWM-brake is never used, maybe refactor & remove
enum motorDir { forward, backward } motorDir;

// ad-hoc acceleration profile
// TODO: self-calibration by means of driveTotalMillis
