 unsigned long timeSlotCounter = 0; // count the timeslots since start of timelapse
 
 int highlightLine = 2;
+int lastDialogLine = 8;
 unsigned long inactivityCounter = 0;
 unsigned long previousMilliseconds = millis();
+bool wifiON = SWITCH_WIFI_ON;
 
 String myIPStr = "";
 
-enum lcdState { LCDOFF, LCDON };
+enum lcdScreens { MAINSCREEN, CONFIGSCREEN };
+lcdScreens actuScreen = MAINSCREEN;
+enum lcdStates { LCDOFF, LCDON };
 bool lcdIsON = true;
 enum triggerModes { ON = 0, OFF = 1 };
 triggerModes currentTriggerMode = OFF;

  process();
  checkAndProcessStartPin();
  processKeyboard();
  processWebClient();
}

void setupWiFi()
{
  WiFi.mode(WIFI_AP); // AP mode for connections
  WiFi.softAP(ssid, password);
  server.begin();
  IPAddress ip = WiFi.softAPIP();
  myIPStr = String(ip[0]) + '.' + String(ip[1]) + '.' + String(ip[2]) + '.' + String(ip[3]);
}

void processWebClient()

  return retVal;
}

void processKeyboard()
{
  delay(100);
