Files
esp32_sd_lcd_image_viewer/main/include/lcd/ui_log.h
T
Timo Niemann b7d7665fde + added helper scripts
+ moved uis into own files
+ log is not rerendered in full anymore
2026-07-01 15:11:25 +02:00

16 lines
552 B
C

#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);