Version is good

This commit is contained in:
rxf
2024-07-09 00:10:13 +02:00
parent b7080c359a
commit 4ed9352138
3 changed files with 72 additions and 30 deletions

View File

@@ -28,7 +28,7 @@
#include "grafik.h"
#include "main.h"
#define BMWREADTIME 10000
#define BMWREADTIME 60000
#define NTPREADTIME 1000
long bmeReadtimer = 0;
@@ -103,13 +103,14 @@ void loop() {
timeinfo = gettheTime(NTPREADTIME);
if (timeinfo.tm_sec == 0) { // minute over
showDateTime(timeinfo);
printLocalTime();
}
if (millis() - bmeReadtimer > BMWREADTIME) {
bmeReadtimer = millis();
bmedata = readBME280();
setValuetoArc(arcTemp, bmedata.temp);
setValuetoArc(arcHum, bmedata.hum);
updatechartData(bmedata.temp, bmedata.hum);
}
lv_task_handler(); // let the GUI do its work
lv_tick_inc(5); // tell LVGL how much time has passed