 
 void UpdateDebugDisplay()
 {
+  lcd.clear();
   lcd.home();
   lcd.print(F("SEC: "));
   lcd.print(secondsOfOperation);

#include <Bounce.h>
#include <avr/eeprom.h>
#include "LCDserNHD.h"

const char* versionString = "3.1.0";

const int CLOCKWISE = 1;
const int COUNTER_CLOCKWISE = 0;

  pinMode(debugDisplayInPin, INPUT_PULLUP);
  // We don't have to set pin mode for analog inputs
  
   onOffSwitch.attach(onOffSwitchInPin);
  onOffSwitch.interval(switchDebounceTime);
  directionSwitch.attach(directionSwitchInPin);
  directionSwitch.interval(switchDebounceTime);
  clockResetSwitch.attach(clockResetInPin);
  clockResetSwitch.interval(switchDebounceTime);
  debugDisplaySwitch.attach(debugDisplayInPin);
  debugDisplaySwitch.interval(switchDebounceTime);

  // Figure out where the direction switch is set and initialize
  // the motor appropriately
  directionSwitch.update();
