<alp/gui.h> — LVGL Re-export
Re-exports the upstream LVGL library with ALP defaults applied so LVGL widgets work out of the box on any E1M target.
Header
#include <alp/gui.h> // pulls in <lvgl.h> with ALP defaults
board.yaml
libraries:
- lvgl
The SDK ships a profile header that pre-tunes LVGL for embedded display sizes and 16-bit colour. Override by dropping your own profile at the app's include root.
Minimal LVGL hello-world
#include <alp/gui.h>
lv_obj_t *label = lv_label_create(lv_scr_act());
lv_label_set_text(label, "Hello, E1M!");
lv_obj_align(label, LV_ALIGN_CENTER, 0, 0);
while (1) {
lv_task_handler();
k_msleep(5);
}
For the full widget reference, see the LVGL documentation.
ALP widget set (v0.3+)
<alp/gui.h> also ships a small ALP widget set on top of LVGL — cards, status bars, tile layouts — tuned for the kind of dashboards typical of E1M-based products.
See also
<alp/display.h>— raw displayboard.yaml: libraries
Questions about this page? Discuss in Community Forum