From 03a9a5a833f3479d41469f41a3415fbad1ad491e Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Tue, 17 Jun 2025 19:05:42 +0200 Subject: [PATCH] update README.md --- README.md | 11 ++++++++--- scripts/build_lvgl_micropython.sh | 2 +- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 760f55d1..36ad526a 100644 --- a/README.md +++ b/README.md @@ -133,8 +133,6 @@ To do so, make sure you have the necessary dependencies: - see https://github.com/MicroPythonOS/lvgl-micropython/ - sudo apt install libv4l-dev # for webcam.c -# Running on desktop - ``` cd ~/projects/MicroPythonOS/MicroPythonOS/ @@ -148,8 +146,15 @@ or ./scripts/build_lvgl_micropython.sh macOS dev ``` +# Running on desktop + +Either build it yourself, or download the latest release, for example: MicroPythonOS_amd64_Linux_0.0.6 + Then to run it, do: ``` -./scripts/run_desktop.sh +cd internal_filesystem/ +/path/to/MicroPythonOS_amd64_Linux_0.0.6 -X heapsize=32M -v -i -c "$(cat boot_unix.py main.py)" ``` + +Also take a look at scripts/run_on_desktop.sh for tips on how to run fullscreen or to immediately start an app, for quick development. diff --git a/scripts/build_lvgl_micropython.sh b/scripts/build_lvgl_micropython.sh index 18ebbd2d..f6c0d967 100755 --- a/scripts/build_lvgl_micropython.sh +++ b/scripts/build_lvgl_micropython.sh @@ -43,7 +43,7 @@ if [ "$target" == "esp32" ]; then python3 make.py --ota --partition-size=4194304 --flash-size=16 esp32 BOARD=ESP32_GENERIC_S3 BOARD_VARIANT=SPIRAM_OCT DISPLAY=st7789 INDEV=cst816s USER_C_MODULE=/home/user/projects/MicroPythonOS/micropython-camera-API/src/micropython.cmake USER_C_MODULE=/home/user/projects/MicroPythonOS/secp256k1-embedded-ecdh/micropython.cmake USER_C_MODULE=/home/user/projects/MicroPythonOS/MicroPythonOS/c_mpos/micropython.cmake CONFIG_FREERTOS_USE_TRACE_FACILITY=y CONFIG_FREERTOS_VTASKLIST_INCLUDE_COREID=y CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=y "$manifest" elif [ "$target" == "unix" -o "$target" == "macos" ]; then if [ "$buildtype" == "prod" ]; then - manifest="FROZEN_MANIFEST=/home/user/projects/MicroPythonOS/manifest_unix.py" + manifest="FROZEN_MANIFEST=/home/user/projects/MicroPythonOS/MicroPythonOS/manifest_unix.py" fi # build for desktop #python3 make.py "$target" DISPLAY=sdl_display INDEV=sdl_pointer INDEV=sdl_keyboard "$manifest"