updated firmware
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user