Skip to main content

UI Class

Package: GHIElectronics.Endpoint.UI
Namespace: GHIElectronics.Endpoint.UI

LVGL subsystem lifecycle. Call UI.Initialize once after the display is enabled, then UI.Run on your UI thread. LVGL is built single-threaded (LV_USE_OS=LV_OS_NONE); use UI.UiTimer for periodic work that must touch widgets.

class UI {};

Methods​

Initialize()​

static void Initialize();

Initialize LVGL and bind it to the framebuffer. Call after the display is enabled. Safe to call multiple times (second and later calls are no-ops).

Run()​

static void Run();

Run the event loop until UI.Stop is called. Blocks the calling thread. Pumps LVGL timers and sleeps between frames.

Stop()​

static void Stop();

Request the event loop to exit at the next tick.