 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"


// Display Settings
const int I2C_DISPLAY_ADDRESS = 0x3c;
const int SDA_PIN = D3;
const int SDC_PIN = D4;

// TimeClient settings
const float UTC_OFFSET = 2;


String lastUpdate = "--";

#if defined(ESP8266)
Ticker ticker;
#else
long timeSinceLastWUpdate = 0;
#endif

//declaring prototypes
void drawProgress(OLEDDisplay *display, int percentage, String label);
