Tactiliest/main/src/hello_world/hello_world.c
Ken Van Hoeylandt 622c9f780c Revert "fix for flash size in default config"
This reverts commit 38e7a359109115f4e3d6fdda963009e3544a6ef3.
2024-01-17 20:52:08 +01:00

25 lines
646 B
C

#include "hello_world.h"
#include "services/gui/gui.h"
#include "services/loader/loader.h"
static void app_show(App app, lv_obj_t* parent) {
UNUSED(app);
lv_obj_t* label = lv_label_create(parent);
lv_label_set_recolor(label, true);
lv_obj_set_width(label, 200);
lv_obj_set_style_text_align(label, LV_TEXT_ALIGN_CENTER, 0);
lv_label_set_text(label, "Hello, world!");
lv_obj_align(label, LV_ALIGN_CENTER, 0, 0);
}
const AppManifest hello_world_app = {
.id = "helloworld",
.name = "Hello World",
.icon = NULL,
.type = AppTypeUser,
.on_start = NULL,
.on_stop = NULL,
.on_show = &app_show
};