clean up simulator build
This commit is contained in:
parent
135a25a798
commit
5d1b0086fd
4 changed files with 6 additions and 13 deletions
|
@ -3,9 +3,6 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
#define screenWidth 240
|
|
||||||
#define screenHeight 320
|
|
||||||
|
|
||||||
class HardwareSimulator :
|
class HardwareSimulator :
|
||||||
public HardwareAbstractionInterface
|
public HardwareAbstractionInterface
|
||||||
{
|
{
|
||||||
|
@ -25,14 +22,9 @@ class HardwareSimulator :
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
virtual void initLVGL(
|
virtual void init() override {
|
||||||
display_flush_cb aDisplayFlushCb = nullptr,
|
|
||||||
touch_pad_read aTouchPadReadCb = nullptr) override {
|
|
||||||
lv_init();
|
lv_init();
|
||||||
};
|
}
|
||||||
|
|
||||||
virtual lv_coord_t getScreenWidth() { return screenWidth; };
|
|
||||||
virtual lv_coord_t getScreenHeight() { return screenHeight; };
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -157,7 +157,7 @@ bool multiple_display_mode_initialization()
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
auto hal = std::make_shared<HardwareSimulator>();
|
auto hal = std::make_shared<HardwareSimulator>();
|
||||||
hal->initLVGL();
|
hal->init();
|
||||||
|
|
||||||
auto ui = OmoteUI::getInstance(hal);
|
auto ui = OmoteUI::getInstance(hal);
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define IS_SIMULATOR true
|
#define IS_SIMULATOR true
|
||||||
|
|
||||||
|
#define SCREEN_WIDTH 240
|
||||||
|
#define SCREEN_HEIGHT 360
|
||||||
|
|
|
@ -19,6 +19,4 @@ public:
|
||||||
|
|
||||||
virtual void init() = 0;
|
virtual void init() = 0;
|
||||||
|
|
||||||
protected:
|
|
||||||
virtual void initLVGL() = 0;
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue