 #include <WiFiUdp.h>
 #include <ArduinoOTA.h>
 
-#include "ht1632c.h"
-
-/// framebuffer
-static uint8_t** ht1632c_framebuffer = 0;
-static uint8_t ht1632c_framebuffer_len = 96;
-
-const char* ssid = "********";
-const char* password = "********";
+#include "HT1632.h"
+
+#define ESP8266
+#define HT1632_CS   D1
+#define HT1632_CLK  D5
+#define HT1632_MOSI D7
+
+
+const char* ssid = "**************";
+const char* password = "*************";
 
 // NTP Servers:
 static const char ntpServerName[] = "europe.pool.ntp.org";

    return;
  int writeAddr = baseAddr;
  for (int i = 0; i < 7; ++i) {
    ht1632c_update_framebuffer(writeAddr, bitIndex, sevenSegmentCharBitSequence[i]);
    Serial.print(sevenSegmentCharBitSequence[i]);
    writeAddr = writeAddr + 2;
  }
  Serial.println();
}

void updateTimeDisplay(char* newTime){
  int characterMap[7] = {0, 0, 0, 0, 0, 0, 0};
  int iValue = 0;
  char cValue = '0';
  for(int timeDigitIndex = 0; timeDigitIndex < 6; timeDigitIndex++){
    cValue = newTime[timeDigitIndex];
    iValue = atoi(&cValue);
    Serial.println(iValue);
    int baseAddr = timeDisplayBaseAddresses[timeDigitIndex][0];
    int bitIndex = timeDisplayBaseAddresses[timeDigitIndex][1];
    writeDisplayCharacterAtIndex(sevenSegmentDigits[iValue], baseAddr, bitIndex);
  }
  Serial.println();
}



  delay(100);
}

//------------------ Woodstation related data -------------------

static int humidityDisplayBaseAddresses[2][2]=
{
    {0,0},
    {7,0}
};

static int temperatureDisplayBaseAddresses[3][2]=
{
    {0,1},
    {7,1},
    {14,1}
};

static int timeDisplayBaseAddresses[6][2]=
{
    {0,2},  //H
    {7,2}, //H
    {14,2}, //m
    {0,3},  //m
    {7,3}, //s
    {14,3}  //s
};

static int dateDisplayBaseAddresses[8][2]=
{
    {0,4},  //D
    {7,4}, //D
    {14,4}, //M
    {0,5},  //M
    {7,5}, //Y
    {14,5}, //Y
    {1,2},  //Y
    {7,6}  //Y
};

static int sevenSegmentDigits[10][7]=
