OMOTE/Platformio/src/main.cpp
Matthew Colvin 5b1228b167 Re work directory structure to support new architecture
Still need to get the Sim building
2023-09-09 21:44:46 -04:00

24 lines
No EOL
499 B
C++

// OMOTE firmware for ESP32
// 2023 Maximilian Kern
#include <lvgl.h>
#include "HardwareRevX.hpp"
#include "OmoteUI.hpp"
#include "omoteconfig.h"
std::shared_ptr<HardwareRevX> hal = nullptr;
void setup() {
hal = HardwareRevX::getInstance();
hal->init();
auto ui = OmoteUI::getInstance(hal);
ui->layout_UI();
lv_timer_handler(); // Run the LVGL UI once before the loop takes over
}
void loop() {
HardwareRevX::getInstance()->loopHandler();
OmoteUI::getInstance()->loopHandler();
}