|
|
|
@ -23,8 +23,8 @@ |
|
|
|
|
#include "misc/lv_color.h" |
|
|
|
|
#include "misc/lv_style.h" |
|
|
|
|
#include "misc/lv_timer.h" |
|
|
|
|
#include "touchwheel.hpp" |
|
|
|
|
#include "tasks.hpp" |
|
|
|
|
#include "touchwheel.hpp" |
|
|
|
|
#include "widgets/lv_label.h" |
|
|
|
|
|
|
|
|
|
#include "display.hpp" |
|
|
|
@ -38,7 +38,8 @@ auto tick_hook(TimerHandle_t xTimer) -> void { |
|
|
|
|
lv_tick_inc(1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void LvglMain(std::weak_ptr<drivers::TouchWheel> weak_touch_wheel, std::weak_ptr<drivers::Display> weak_display) { |
|
|
|
|
void LvglMain(std::weak_ptr<drivers::TouchWheel> weak_touch_wheel, |
|
|
|
|
std::weak_ptr<drivers::Display> weak_display) { |
|
|
|
|
ESP_LOGI(kTag, "init lvgl"); |
|
|
|
|
lv_init(); |
|
|
|
|
|
|
|
|
@ -68,7 +69,8 @@ void LvglMain(std::weak_ptr<drivers::TouchWheel> weak_touch_wheel, std::weak_ptr |
|
|
|
|
|
|
|
|
|
auto StartLvgl(std::weak_ptr<drivers::TouchWheel> touch_wheel, |
|
|
|
|
std::weak_ptr<drivers::Display> display) -> void { |
|
|
|
|
tasks::StartPersistent<tasks::Type::kUi>([=]() { LvglMain(touch_wheel, display); }); |
|
|
|
|
tasks::StartPersistent<tasks::Type::kUi>( |
|
|
|
|
[=]() { LvglMain(touch_wheel, display); }); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} // namespace ui
|
|
|
|
|