What MCU/Processor/Board and compiler are you using?
Code Blocks c/c++ compiler.
What LVGL version are you using?
the package of the simulator. Do not know the release version.
What do you want to achieve?
Add a meter onto the newly created tab
What have you tried so far?
Successfully create a new lv_obj_t * tab and add a function called meter_create(), but failed at the unknown function lv_linemeter_create() in the sample code of meter provided on the webpage of lvgl docs. Where can I find the position of this function?
Code to reproduce
/*Create a line meter */ lv_obj_t * lmeter; lmeter = lv_linemeter_create(lv_scr_act(), NULL); lv_linemeter_set_range(lmeter, 0, 100); /*Set the range*/ lv_linemeter_set_value(lmeter, 80); /*Set the current value*/ lv_linemeter_set_scale(lmeter, 240, 21); /*Set the angle and number of lines*/ lv_obj_set_size(lmeter, 150, 150); lv_obj_align(lmeter, NULL, LV_ALIGN_CENTER, 0, 0);