 #include "BMP085.h"
 #include "Adafruit_GFX.h"
 #include "Adafruit_SSD1306.h"
+//#include "Adafruit_FeatherOLED\Adafruit_FeatherOLED_WiFi.h"
 
 #define	SERIAL_STATUS_OUTPUT
 #undef MEASURE_PREFORMANCE

MPU6050		accelgyro;
HMC5883L	mag;
BMP085		barometer;
Adafruit_SSD1306  display = Adafruit_SSD1306();

sGlobalSensors	sensors;

	snprintf(display_struct.displaybuffer[3], 21, "G\\ %s %s %s", display_struct.tempbuffer[0], display_struct.tempbuffer[1], display_struct.tempbuffer[2]);
}

void update_display_scr3() {
	//int8_t rssi = WiFi.RSSI();
	//uint32_t ipAddress = WiFi.localIP();
	//display.setBatteryVisible(false);

	//display.setConnected(true);
	//display.setConnectedVisible(true);
	//display.setRSSIVisible(true);
	//display.setRSSIIcon(true);
	//display.setRSSI(rssi);
	//display.setIPAddress(ipAddress);
	//display.refreshIcons();
	//display.clearMsgArea();
}

void update_display_print_buffer() {
	display.clearDisplay();
	//display.setCursor(3, 0);	// move x by 3 px caused by housing
	display.println(display_struct.displaybuffer[0]);
	//display.setCursor(3, display.getCursorY());
	display.println(display_struct.displaybuffer[1]);
	//display.setCursor(3, display.getCursorY());
	display.println(display_struct.displaybuffer[2]);
	//display.setCursor(3, display.getCursorY());
	display.println(display_struct.displaybuffer[3]);
}

void update_display()
{
	switch (rotenc.actualRotaryTicks)
	{
	case DISPLAY_SCR_OVERVIEW:
		update_display_scr1();
		update_display_print_buffer();
		break;
	case DISPLAY_SCR_MAXVALUES:
		update_display_scr2();
		update_display_print_buffer();
		break;
	case DISPLAY_SCR_WLAN_STATUS:
		update_display_scr3();
		break;
	default:
		break;
	}
}

void initialize_WLAN() {
