diff --git a/README.md b/README.md index 672bab7c..a3a21bd5 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,9 @@ Furthermore, these apps are also built-in for convenience: # Building +Prepare all the sources: + +``` mkdir ~/sources/ cd ~/sources/ @@ -56,12 +59,20 @@ git clone https://github.com/cnadler86/micropython-camera-API echo 'include("~/sources/lvgl_micropython/build/manifest.py")' >> micropython-camera-API/src/manifest.py git clone https://github.com/lvgl-micropython/lvgl_micropython -# TODO: apply patches from ~/sources/PiggyOS/patches/ - cp ~/sources/PiggyOS/patches/lv_conf.h lvgl_micropython/lib/ -cd lvgl_micropython/ -~/sources/PiggyOS/scripts/build_lvgl_micropython.sh +cd lvgl_micropython/lib/micropython +patch -p1 < ~/sources/PiggyOS/patches/lvgl_micropython*.patch +``` -# Now install it with: +Start the build: + +``` +~/sources/PiggyOS/scripts/build_lvgl_micropython.sh +``` + +Now install it with: + +``` ~/sources/PiggyOS/scripts/flash_over_usb.sh +``` diff --git a/patches/lvgl_micropython_lib_micropython_fix_ov5640_camera_colors.patch b/patches/lvgl_micropython_lib_micropython_fix_ov5640_camera_colors.patch new file mode 100644 index 00000000..8d236b6e --- /dev/null +++ b/patches/lvgl_micropython_lib_micropython_fix_ov5640_camera_colors.patch @@ -0,0 +1,12 @@ +--- ports/esp32/managed_components/espressif__esp32-camera/sensors/private_include/ov5640_settings.h.orig 2025-04-30 13:55:08.270061607 +0200 ++++ ports/esp32/managed_components/espressif__esp32-camera/sensors/private_include/ov5640_settings.h 2025-04-25 11:34:00.519068438 +0200 +@@ -232,7 +232,8 @@ + + static const DRAM_ATTR uint16_t sensor_fmt_rgb565[][2] = { + {FORMAT_CTRL, 0x01}, // RGB +- {FORMAT_CTRL00, 0x61}, // RGB565 (BGR) ++ //{FORMAT_CTRL00, 0x61}, // RGB565 (BGR) ++ {FORMAT_CTRL00, 0x6F}, // RGB565 (RGB) + {REGLIST_TAIL, 0x00} + }; +