updated screen + added OTA

This commit is contained in:
2021-07-27 08:26:12 +02:00
parent 11b146c2d1
commit dd511c8e18
14 changed files with 261 additions and 57 deletions

View File

@@ -41,6 +41,7 @@
#include "CO2_sensor.h"
#include "VOC_sensor.h"
#include "button.h"
#include "esp_ota.h"
/*--------------------------- Program ---------------------------------------*/
/**
@@ -52,17 +53,33 @@ void setup()
Serial.println();
Serial.print("Air Quality Sensor starting up, v");
Serial.println(VERSION);
digitalWrite(5, false);
initWifi();
initMQTT();
initSensor();
initParticles();
initCO2sensor();
initVOCsensor();
ProgressbarVisible(true);
initLCD();
setOTAProgress(10);
initButtons();
setOTAProgress(20);
initWifi();
setOTAProgress(30);
initEspOta();
setOTAProgress(40);
initMQTT();
setOTAProgress(50);
initSensor();
setOTAProgress(60);
initParticles();
setOTAProgress(70);
initCO2sensor();
setOTAProgress(80);
initVOCsensor();
setOTAProgress(90);
ProgressbarVisible(false);
}
/**
@@ -77,4 +94,5 @@ void loop()
handleSensor();
handleLCD();
handleMQTT();
handleEspOta();
}