 #include <Adafruit_Sensor.h>
 #include <Adafruit_BME280.h>
 #include <Adafruit_VEML6070.h>
-// Display
-#include <TM1637Display.h>
 // send MQTT messages
 #include <PubSubClient.h>
 

void printHeader(){
  Serial.println("Temperature °C\tPressure\tAltitude\tLight\tUV\tHumidity");
}


/**
 * All segments on the display to on
 */
void displayAllOn(){
  // All segments on
  displayAll(0xff);
}

/**
 * All segments on the display to off
 */
void displayAllOff(){
  // All segments off
  displayAll(0);
}

/**
 * Display same pattern on all segments
 */
void displayAll(uint8_t aValue){
  // All segments on the same value
  Serial.print("all to ");
  Serial.println(aValue);
  uint8_t data[] = { aValue, aValue, aValue, aValue };
  display.setSegments(data);
}

/**
 * Display on the embedded hardware
 */
void displayTemperature(){
    //Serial.print("Display temperature : ");
    //Serial.print(temperature, 1);
    //Serial.println("°C");

    display.showNumberDec(temperature * 10, false, 4, 0);
}

    client.setServer(settings.mqtt_server, String(settings.mqtt_port).toInt());
    reconnect();

    // Sensor
    Serial.println("Setting sensor");
    Wire.pins(IC_DATA, IC_CLK);
