Files
miliohm_meter/MilliOhmMeter_FW/src/main.cpp
2022-03-21 08:48:30 +01:00

32 lines
622 B
C++

#include <Arduino.h>
#include "board.h"
#include "display.h"
#include "measure.h"
#include "buttons.h"
#include "gui.h"
uint64_t looptime = 0;
void setup()
{
// put your setup code here, to run once:
initBoard();
initButtons();
initDisplay();
initMeasure();
initGui();
looptime = millis();
}
void loop()
{
// put your main code here, to run repeatedly:
looptime = micros();
handleMeasure();
handleButtons();
handleGui();
handleGUIButtons();
handleDisplay(); //make sure to update the display last (writes buffer to the screen)
log_i("T=%4.2fms\n", (double)(micros() - looptime)/1000);
}