Refactor LVGL code into kernel module (#472)

* **New Features**
  * Added a standalone LVGL module and enabled LVGL support in the simulator for richer local UI testing.

* **Refactor**
  * HAL and LVGL split into distinct modules; startup and device attach/detach flows reorganized for clearer lifecycle management.
  * Public APIs tightened with clearer nullability/documentation.

* **Bug Fixes**
  * More consistent LVGL start/stop and device attach/detach behavior for improved stability.
This commit is contained in:
Ken Van Hoeylandt
2026-02-01 22:57:45 +01:00
committed by GitHub
parent 3fe1dc0312
commit 9f721e6655
135 changed files with 1553 additions and 667 deletions
@@ -36,7 +36,7 @@ class AppInstance : public AppContext {
* When these are stored in the app struct, the struct takes ownership.
* Do not mutate after app creation.
*/
std::shared_ptr<const Bundle> _Nullable parameters;
std::shared_ptr<const Bundle> parameters;
std::shared_ptr<App> app;
@@ -1,11 +0,0 @@
#pragma once
#ifdef ESP_PLATFORM
namespace tt::lvgl {
bool initEspLvglPort();
}
#endif
@@ -1,9 +1,11 @@
#pragma once
#include <Tactility/hal/Configuration.h>
#include <Tactility/lvgl/Lvgl.h>
namespace tt::lvgl {
void init(const hal::Configuration& config);
void attachDevices();
} // namespace
void detachDevices();
}
@@ -39,7 +39,7 @@ class GuiService final : public Service {
// App-specific
std::shared_ptr<app::AppInstance> appToRender = nullptr;
lv_obj_t* _Nullable keyboard = nullptr;
lv_obj_t* keyboard = nullptr;
lv_group_t* keyboardGroup = nullptr;
bool isStarted = false;
@@ -48,7 +48,7 @@ public:
void stop();
};
std::shared_ptr<ScreenshotService> _Nullable optScreenshotService();
std::shared_ptr<ScreenshotService> optScreenshotService();
} // namespace