+ added helper scripts

+ moved uis into own files
+ log is not rerendered in full anymore
This commit is contained in:
Timo Niemann
2026-07-01 15:11:25 +02:00
parent 28d0fcc7dc
commit b7d7665fde
11 changed files with 588 additions and 408 deletions
+15
View File
@@ -0,0 +1,15 @@
#pragma once
#include "lvgl.h"
// Appends a line to the scrollback log. Safe to call before the log view
// exists and from any task; the line is always stored in the ring buffer.
void ui_log_append(const char *text);
void ui_log_appendf(const char *format, ...);
// Builds the log view (title + textarea) onto the given screen and restores
// the ring-buffer history. The caller must hold the LVGL lock.
void ui_log_build_view(lv_obj_t *screen);
// Drops the textarea reference; call before the active screen is cleared.
void ui_log_detach(void);