       persistentValues.lastLiftLevel = 0;
       persistentValues.lastStepperPosition = 0;
       stepper.setCurrentPosition(persistentValues.lastStepperPosition);
-      
+
       EEPROM.put(EEPROM_BASE_ADDR, persistentValues);
-      
+
       if(homing)
       {
         long newPos = persistentValues.levelPositions[persistentValues.lastLiftLevel];

      newSpeed = lastSpeed + STEPPER_INC_SPEED;
      lastSpeedChange = STEPPER_MAN_SPEED_CHANGE_MILLIS;
      Serial.print("Down Press - Current Pos: "); Serial.print(stepper.currentPosition()); Serial.print("  New Speed: "); Serial.println(newSpeed);
  
      displayMessage("Down");
    }
  }
  
  else if((btnDown.press() || btnDown.step()) && persistentValues.lastLiftLevel > 0)
  {
    Serial.print("Down Press - Current Level: "); Serial.print(persistentValues.lastLiftLevel);


#define BUTTON_LONG_PRESS_DELAY 2000

#define AJS_BOARD_SETTINGS
//#define UWE_BOARD_SETTINGS

#if defined(AJS_BOARD_SETTINGS)  // Setting for AJS Dev System

// Uncomment the next line to reverse the direction of the stepper movement
#define REVERSE_STEPPER_DIRECTION

#define HOME_SENSOR_PIN     10

#define STEPPER_PULSE_PIN   11
#define STEPPER_ENABLE_PIN  12
#define STEPPER_DIR_PIN     13

#define STEPPER_MAX_SPEED             2100
#define STEPPER_NORMAL_ACCELERATION   5000
#define STEPPER_MAX_POSITION  300000U // Maximum Steps to allow the stepper to drive Up Saftey mechanism

#define BUTTON_MANUAL     A3
#define BUTTON_DOWN       A2
#define BUTTON_UP         A1
#define BUTTON_STOP_HOME  A0

long defaultPositions[NUM_LIFT_LEVELS] = {1000, 4000, 7000, 10000, 13000, 16000, 19000, 22000}; // Default positions

#define STEPPER_INC_SPEED             (STEPPER_MAX_SPEED / 10)

#define OLED_DISPLAY_I2C_ADDRESS  0x3C

#elif defined (UWE_BOARD_SETTINGS)  // Setting for Uwe's Fahrstuhl System

// Uncomment the next line to reverse the direction of the stepper movement
//#define REVERSE_STEPPER_DIRECTION

#define HOME_SENSOR_PIN     7

#define STEPPER_PULSE_PIN   4
