Hi,
I’m porting my project to version 6.0 …
could you give me an example of how to use the “old” lv_obj_set_free_num
Thanks
Walter
Hi,
I’m porting my project to version 6.0 …
could you give me an example of how to use the “old” lv_obj_set_free_num
Thanks
Walter
Assuming that the size of your number is equal to or less than your pointer size, you can just cast your number to void *
and set that as the user data. Then you can retrieve the user data and cast the result back to a number.
Or you can set typedef uint32_t lv_obj_user_data_t;
in lv_conf.h
and use lv_obj_set/get_user_data
Thank you so much
You’re welcome!