clean up simulator build

This commit is contained in:
Matthew Colvin 2023-07-29 10:31:34 -05:00
parent 135a25a798
commit 5d1b0086fd
4 changed files with 6 additions and 13 deletions

View file

@ -3,9 +3,6 @@
#include <string>
#include <iostream>
#define screenWidth 240
#define screenHeight 320
class HardwareSimulator :
public HardwareAbstractionInterface
{
@ -25,14 +22,9 @@ class HardwareSimulator :
};
virtual void initLVGL(
display_flush_cb aDisplayFlushCb = nullptr,
touch_pad_read aTouchPadReadCb = nullptr) override {
virtual void init() override {
lv_init();
};
virtual lv_coord_t getScreenWidth() { return screenWidth; };
virtual lv_coord_t getScreenHeight() { return screenHeight; };
}
};

View file

@ -157,7 +157,7 @@ bool multiple_display_mode_initialization()
int main()
{
auto hal = std::make_shared<HardwareSimulator>();
hal->initLVGL();
hal->init();
auto ui = OmoteUI::getInstance(hal);

View file

@ -1,3 +1,6 @@
#pragma once
#define IS_SIMULATOR true
#define SCREEN_WIDTH 240
#define SCREEN_HEIGHT 360

View file

@ -19,6 +19,4 @@ public:
virtual void init() = 0;
protected:
virtual void initLVGL() = 0;
};