We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e916515 commit e341c83Copy full SHA for e341c83
internal_filesystem/lib/mpos/ui/display.py
@@ -23,8 +23,10 @@ def init_rootscreen():
23
img.set_blend_mode(lv.BLEND_MODE.DIFFERENCE) # invert the logo color
24
img.center()
25
except Exception as e: # if image loading fails
26
- print(f"Falling back to text-based logo because image loading failed: {e}")
27
- screen.clean()
+ print(f"ERROR: logo image failed, LVGL will be in a bad state and the UI will hang: {e}")
+ import sys
28
+ sys.print_exception(e)
29
+ print("Trying to fall back to a simple text-based 'logo' but it won't showup because the UI broke...")
30
label = lv.label(screen)
31
label.set_text("MicroPythonOS")
32
label.set_style_text_font(lv.font_montserrat_20, lv.PART.MAIN)
0 commit comments