diff --git a/internal_filesystem/lib/mpos/ui/display.py b/internal_filesystem/lib/mpos/ui/display.py index edda770a..50ae7fab 100644 --- a/internal_filesystem/lib/mpos/ui/display.py +++ b/internal_filesystem/lib/mpos/ui/display.py @@ -11,20 +11,6 @@ def init_rootscreen(): _horizontal_resolution = disp.get_horizontal_resolution() _vertical_resolution = disp.get_vertical_resolution() print(f"init_rootscreen set _vertical_resolution to {_vertical_resolution}") - - # It seems this style - style = lv.style_t() - style.init() - #style.set_bg_opa(lv.OPA.TRANSP) - style.set_border_width(0) - #style.set_outline_width(0) - #style.set_shadow_width(0) - style.set_pad_all(0) - style.set_radius(0) - screen.add_style(style, 0) - #screen.set_scrollbar_mode(lv.SCROLLBAR_MODE.OFF) - #screen.set_scroll_dir(lv.DIR.NONE) - label = lv.label(screen) label.set_text("Welcome to MicroPythonOS") label.center() diff --git a/scripts/flash_over_usb.sh b/scripts/flash_over_usb.sh index 2dbca395..d0afa2bf 100755 --- a/scripts/flash_over_usb.sh +++ b/scripts/flash_over_usb.sh @@ -1,6 +1,10 @@ mydir=$(readlink -f "$0") mydir=$(dirname "$mydir") -fwfile="$mydir/../lvgl_micropython/build/lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-16.bin" +fwfile="$0" +# This would break the --erase-all +#if [ -z "$fwfile" ]; then + #fwfile="$mydir/../lvgl_micropython/build/lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-16.bin" +#fi ls -al $fwfile echo "Add --erase-all if needed" sleep 5