 See more at http://blog.squix.ch
 */
 
-#include <ESP8266WiFi.h>
+#include <ESPWiFi.h>
+#if defined(ESP8266)
 #include <Ticker.h>
+#endif
 #include <JsonListener.h>
 #include "SSD1306Wire.h"
 #include "OLEDDisplayUi.h"

  Serial.println("");

  updateData(&display);

  ticker.attach(UPDATE_INTERVAL_SECS, setReadyForWeatherUpdate);

}

void loop() {

  if (readyForWeatherUpdate && ui.getUiState()->frameState == FIXED) {
    updateData(&display);


// Display Settings
const int I2C_DISPLAY_ADDRESS = 0x3c;
#if defined(ESP8266)
const int SDA_PIN = D3;
const int SDC_PIN = D4;
#else
const int SDA_PIN = 5; //D3;
const int SDC_PIN = 4; //D4;
#endif

// TimeClient settings
const float UTC_OFFSET = 2;
