I’ve been following Shawn Hymel’s excellent series on Getting Started with Zephyr.
I tried out the 10_demo_display using Zephyr 3.7 and Zephyr 4.0 and it works properly with both of those. If I try running it under Zephyr 4.1 then I get a mangled display.
I made the following changes:
Changed apps/10_demo_display/boards/esp32s3_devkitc.overlay
mipi-mode = <MIPI_DBI_MODE_SPI_4WIRE>;
to
mipi-mode = "MIPI_DBI_MODE_SPI_4WIRE";
Changed the definition of rect_points
in src/main.c from lv_point_t
to lv_point_precise_t
(this eliminated a compiler warning).
Removed CONFIG_LV_MEM_CUSTOM=y
from prj.conf (this is a non-existent KConfig option and it complains under 4.1)
Changed CONFIG_LV_Z_MEM_POOL_SIZE=8192
to CONFIG_LV_Z_MEM_POOL_SIZE=58368
I used the same value from the LVGL samples.