Tactiliest/Tactility/Source/lvgl/LabelUtils.cpp
2024-12-08 16:46:19 +01:00

14 lines
280 B
C++

#include "LabelUtils.h"
#include "file/File.h"
namespace tt::lvgl {
#define TAG "tt_lv_label"
void label_set_text_file(lv_obj_t* label, const char* filepath) {
auto text = file::readString(filepath);
lv_label_set_text(label, (const char*)text.get());
}
} // namespace