 {
   motor->dir = dir;
   digitalWrite(motor->pin, HIGH);
-}
-
-void loop() {
-  // put your main code here, to run repeatedly:
 }
 
 /*******************************

  for (int i = 0; i < 20; i++) {
    motor->deg = 0;
    motor_turn_deg(motor, 360, COUNTERCLOCKWISE);
    if (motor->deg < 360) {     // In case it happens that the loop breaks out before 360 degrees
      Serial.println("ERROR");  // thrown an error, because that is not supposed to happen.
      exit(0);                  // The error should be fixed, but cant be sure yet.
    }

    delay(1000);
    Serial.println(motor->deg); // Value used for component testing.

struct Motor {
  int pin = 0;
  volatile long deg = 0;
  byte lock = 0;
  Turning_Direction dir = COUNTERCLOCKWISE;
};

