 
 	  http.end();
 	*/
-	delay(1000 * 1);
-}
-
-
+	lastButtonPressed += pause_in_ms; // a little false since we are doing other, stuff, but, meh
+	DEBUG_PRINTLN(lastButtonPressed);
+	if (lastButtonPressed > POWERSAVE_IN_MS)
+	{
+		pause_in_ms = PAUSE_POWERSAVE_IN_MS;
+		displayOn = false;
+		u8g2.noDisplay();
+	}
+		
+	delay(pause_in_ms);
+}
+
+

	wifiConnection.checkWiFi();
}

void button_pressed() {
	Serial.println("Button pressed!");
}

void loop() {
	wifiConnection.checkWiFi();

	String displayData;
	sensors_event_t event;
	dht.temperature().getEvent(&event);

		wifiFrame = wifiFrame + 1 % NUM_WIFI_FRAMES;
	u8g2.drawXBM(SCREEN_WIDTH - 16, SCREEN_HEIGHT - 16, 16, 16, WIFI_FRAMES[wifiFrame]);
	u8g2.sendBuffer();

}

void loop() {
	wifiConnection.checkWiFi();

	if (displayOn) {
		display();
	}


	/*
	  http.begin("http:///");
