Description Need help with meter indicators
What MCU/Processor/Board and compiler are you using? ESP32S3, Waveshare 7" https://www.waveshare.com/product/mcu-tools/development-boards/esp32/esp32-s3-touch-lcd-7.htm
What LVGL version are you using? v8
What do you want to achieve?
I want to manipulate the indicators in a meter programmatically
What have you tried so far?
I can’t get access to the indicators from my .ino file
labels and slider work as expected
Code to reproduce
(GitHub - mej558/lvgl_Porting)
if (objects.ph_set_slider != NULL){
//slider
int32_t slider_low = lv_slider_get_left_value(objects.ph_set_slider);
int32_t slider_high = lv_slider_get_value(objects.ph_set_slider);
//labels
if(get_var_ph_low() != slider_low) set_var_ph_low(slider_low);
if(get_var_ph_high() != slider_high) set_var_ph_high(slider_high);
/*meter -
This doesn't work becuase I can't figure out how to get the indicators???*/
lv_meter_set_indicator_value(objects.ph_meter, indicator1, 3);
lv_meter_set_indicator_value(objects.ph_meter, indicator2, 7);
lv_meter_set_indicator_value(objects.ph_meter, indicator3, 11);
}