 
 	  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);
+}
+
+

String postData = String("temperature=");

HTTPClient http;

static const unsigned int NUM_WIFI_FRAMES = 5;
static const uint8_t WIFI_FRAMES[NUM_WIFI_FRAMES][32] = {

	wifiConnection.checkWiFi();
}

extern "C" void esp_schedule();

extern void delay_end(void* arg);

void button_pressed() {
	DEBUG_PRINTLN("Button pressed!");
	lastButtonPressed = 0;
	displayOn = true;
	pause_in_ms = PAUSE_ACTIVE_IN_MS;
	u8g2.display();
	esp_schedule();
}

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