You've already forked MicroPythonOS
mirror of
https://github.com/m5stack/MicroPythonOS.git
synced 2026-05-20 11:51:27 -07:00
Scale boot logo down if necessary
This commit is contained in:
@@ -23,6 +23,8 @@ def init_rootscreen():
|
||||
# Show logo
|
||||
img = lv.image(screen)
|
||||
img.set_src("M:builtin/res/mipmap-mdpi/MicroPythonOS-logo-white-long-w296.png") # from the MPOS-logo repo
|
||||
if width < 296:
|
||||
img.set_scale(int(256 * width/296))
|
||||
img.set_blend_mode(lv.BLEND_MODE.DIFFERENCE)
|
||||
img.center()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user