updated firmware

This commit is contained in:
2022-02-08 19:27:00 +01:00
parent dd0ff7eb29
commit 589f064959
63 changed files with 197 additions and 21274 deletions

View File

@@ -3,6 +3,8 @@
#include "display.h"
#include "leds.h"
#include "measure.h"
#include "buttons.h"
#include "gui.h"
uint64_t looptime = 0;
@@ -10,9 +12,12 @@ void setup()
{
// put your setup code here, to run once:
initBoard();
initButtons();
initDisplay();
initLeds();
initMeasure();
initGui();
looptime = millis();
}
@@ -20,10 +25,10 @@ void loop()
{
// put your main code here, to run repeatedly:
looptime = micros();
handleDisplay();
handleLeds();
handleMeasure();
handleButtons();
handleGui();
handleDisplay(); //make sure to update the display last (writes buffer to the screen)
Serial.printf("T=%4.2fms\n", (double)(micros() - looptime)/1000);
}