#include #include namespace tt::lvgl { bool label_set_text_file(lv_obj_t* label, const char* filepath) { std::unique_ptr text; { file::FileMutexGuard guard(filepath); text = file::readString(filepath); } if (text != nullptr) { lv_label_set_text(label, reinterpret_cast(text.get())); return true; } else { return false; } } } // namespace