yes, but how, where should this “DryerIndic” be defined?
Somewhere in a setup_scr_screen.c file I have the code see below.
Then in my main.c (loop) I try to set the position with the second code below - but this does not work…
I’m a beginner in C/C++, so it’s hard for me to define the right function, pointer, structure, class or whatever for this…
setup_scr_screen.c:
//add scale screen_meter_1_scale_1
lv_meter_scale_t *screen_meter_1_scale_1 = lv_meter_add_scale(ui->screen_meter_1);
lv_meter_set_scale_ticks(ui->screen_meter_1, screen_meter_1_scale_1, 41, 2, 10,
lv_color_make(0xff, 0x00, 0x00));
lv_meter_set_scale_major_ticks(ui->screen_meter_1, screen_meter_1_scale_1, 8, 5, 15,
lv_color_make(0xff, 0xff, 0x00), 10);
lv_meter_set_scale_range(ui->screen_meter_1, screen_meter_1_scale_1, 0, 100, 300, 90);
//add needle line for screen_meter_1_scale_1
lv_meter_indicator_t *screen_meter_1_scale_1_ndline_0;
screen_meter_1_scale_1_ndline_0 = lv_meter_add_needle_line(ui->screen_meter_1,
screen_meter_1_scale_1, 2, lv_color_make(0x00, 0x00, 0x00), -20);
lv_meter_set_indicator_value(ui->screen_meter_1, screen_meter_1_scale_1_ndline_0, 30);
main.c:
lv_meter_indicator_t *screen_meter_1_scale_1_ndline_0;
//screen_meter_1_scale_1_ndline_0 = lv_meter_add_needle_line(guider_ui.screen_meter_1, 0, 2, lv_color_make(0x00, 0x00, 0x00), -20);
lv_meter_set_indicator_value(guider_ui.screen_meter_1, screen_meter_1_scale_1_ndline_0, count);