I have LVGL running on my hardware using the Micropython version and now I am now trying to make LVGL work in my device simulator. The simulator already works with the Micropython Unix port from before I was using LVGL.
Now I am trying to get LVGL working in the simulator, building with
-DLV_COLOR_DEPTH=1 to simulate my device’s monochrome screen, but I get build errors that I haven’t been able to track down yet.
CC build-standard/lvgl/lv_mpy.c CC ../../lib/lv_bindings/driver/png/mp_lodepng.c build-standard/lvgl/lv_mpy.c: In function ‘mp_funcptr_lv_color_filter_cb_t’: build-standard/lvgl/lv_mpy.c:5309:43: error: invalid initializer #define mp_write_lv_color32_t(struct_obj) *mp_write_ptr_lv_color32_t(struct_obj) ^ build-standard/lvgl/lv_mpy.c:5382:23: note: in expansion of macro ‘mp_write_lv_color32_t’ lv_color_t arg1 = mp_write_lv_color32_t(mp_args); ^~~~~~~~~~~~~~~~~~~~~ build-standard/lvgl/lv_mpy.c: In function ‘mp_funcptr_flush_cb’: build-standard/lvgl/lv_mpy.c:6996:27: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] lv_color_t *color_p = mp_write_ptr_lv_color32_t(mp_args);
Is this supported in the Unix port?