sim: LittleVgl: update s.t. LVGL-FS driver is initialized by LittleVgl
InfiniTime moved the LVGL-FS driver initialization to the LittleVgl constructor and passed the FS member to do that. Update the simulator copy of LittleVgl to do just that. Fixes: https://github.com/InfiniTimeOrg/InfiniSim/issues/89
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <lvgl/lvgl.h>
|
||||
#include <components/fs/FS.h>
|
||||
|
||||
namespace Pinetime {
|
||||
namespace Drivers {
|
||||
@@ -11,7 +12,7 @@ namespace Pinetime {
|
||||
class LittleVgl {
|
||||
public:
|
||||
enum class FullRefreshDirections { None, Up, Down, Left, Right, LeftAnim, RightAnim };
|
||||
LittleVgl(Pinetime::Drivers::St7789& lcd);
|
||||
LittleVgl(Pinetime::Drivers::St7789& lcd, Pinetime::Controllers::FS& filesystem);
|
||||
|
||||
LittleVgl(const LittleVgl&) = delete;
|
||||
LittleVgl& operator=(const LittleVgl&) = delete;
|
||||
@@ -37,8 +38,10 @@ namespace Pinetime {
|
||||
private:
|
||||
void InitDisplay();
|
||||
void InitTouchpad();
|
||||
void InitFileSystem();
|
||||
|
||||
Pinetime::Drivers::St7789& lcd;
|
||||
Pinetime::Controllers::FS& filesystem;
|
||||
|
||||
lv_disp_buf_t disp_buf_2;
|
||||
lv_color_t buf2_1[LV_HOR_RES_MAX * 4];
|
||||
|
Reference in New Issue
Block a user