moved to sensor class

This commit is contained in:
2021-07-22 13:54:52 +02:00
parent 4af72b1710
commit 2babfff289
10 changed files with 266 additions and 158 deletions

View File

@@ -17,6 +17,7 @@
Adafruit_NeoPixel.h
Adafruit_Sensor.h
Adafruit_BME680.h
AdaFruit_SCD30.h
"PubSubClient" by Nick O'Leary
RunningMedian
@@ -36,6 +37,7 @@
#include "lcd.h"
#include "mqtt.h"
#include "particles.h"
#include "CO2_sensor.h"
#include "button.h"
/*--------------------------- Program ---------------------------------------*/
@@ -48,10 +50,12 @@ void setup()
Serial.println();
Serial.print("Air Quality Sensor starting up, v");
Serial.println(VERSION);
initWifi();
initMQTT();
initSensor();
initParticles();
initCO2sensor();
initLCD();
initButtons();
}
@@ -62,7 +66,9 @@ void setup()
void loop()
{
handleParticles();
handleMQTT();
handleCO2sensor();
handleButtons();
handleSensor();
handleLCD();
handleMQTT();
}