I’m trying to use the view code example but I continue getting this error any help is appreciated
In LVGL, all objects are of type lv_obj_t
not lv_[specific object type, such as label]_t
. The errors you are getting are referring to the functions you are using expecting label
to be an lv_obj_t*
rather than an lv_label_t*
. Also, with PROS and LVGL, you don’t need to create a view, and you should use lv_scr_act()
instead of rd_view_obj(view)
. Additionally, it is good practice to define your lv_obj
’s globally and declare them in a function, so that they can be referenced in any callback functions you might make.