Yes, I am that one. Sorry for posting in the wrong place.
Now I am back to the KeilC because I don’t get used to the way STM32CubeIDE works.
Currently I am facing this error:
…/Src/main.c(96): warning: #223-D: function “put_px” declared implicitly
put_px(x, y, color_p); / Put a pixel to the display.*/
…/Src/main.c(102): error: #167: argument of type “lv_disp_t *” is incompatible with parameter of type “lv_disp_drv_t "
…/Src/main.c(153): warning: #513-D: a value of type "void ()(lv_disp_t *, const lv_area_t *, lv_color_t )" cannot be assigned to an entity of type "void ()(struct _disp_drv_t *, const lv_area_t *, lv_color_t *)”
disp_drv.flush_cb = my_disp_flush; /Set your driver function/
…/Src/main.c: 2 warnings, 1 error
“LCD_LVGL\LCD_LVGL.axf” - 1 Error(s), 2 Warning(s).
Here is the Github repo I just created. Sorry because I posted everything at once so there is not much information about changes I made.
Could you please have a look at that repo?
Everything I did I followed the instruction from the lvgl repo. There are 2 extra changes i made:
- I deleted “return 0” of function lv_color_to16 in lv_color.h because i met this error:
…/Src/…/lvgl/src/lv_hal/…/lv_misc/lv_color.h(378): warning: #111-D: statement is unreachable
I did as instructed from answers online.
- I changed “lvgl/lvgl.h” to “…/lvgl/lvgl.h” in file lv_api_map.h because after i fixed the previous errors, it appeared an error at that place.