 #include <SimpleTimer.h>
 
 //--- SETTINGS ---
-const String strTitle = "2016 GRADUATION";    // title - must be a multiple of 16 characters
+const String strTitle = "2016 GRADUATION www.antuple.net/projects/";    // title - must be a multiple of 16 characters
 const String strGrad = "CONGRATS GRADS!";     // timer done message - must be a multiple of 16 characters
 const int lcdPin = 2;                         // pin for LCD
+const int scrollDirection = 0;                // direction to scroll text in, 0 = right to left, 1 = left to right
 
 // time to count down from
-const int dMax = 74;                          // days
+const int dMax = 70;                          // days
 const int hMax = 0;                           // hours
 const int mMax = 0;                           // minutes
 const int sMax = 0;                           // seconds

  setupTime();                                            // setup time left
  delay(100);
  
  // pad title string with 16 whitespaces in the front
  int padding = strTitle.length() % 16;
  
  // scroll left to right
  for (int i = 0; i < padding; i++) {
     strTitleDisplay = " " + strTitleDisplay;
  }
  
  // pad title string with 16 whitespaces in the front
  padding = strGrad.length() % 16;
  
  // scroll left to right
  for (int i = 0; i < padding; i++) {
     strGradDisplay = " " + strGradDisplay;
  }
}


  return formateClockTime(daysLeft, h, m, s);
}

// format time in DD:HH:MM:SS
String formateClockTime(int days, int hours, int minutes, int seconds) {
  return printDigits(days, true) + printDigits(hours, true) + printDigits(minutes, true) + printDigits(seconds, false);
}
