I solved the missing app_main problem posted today in another thread, by taking the workiing example and hollowing it out and added a simple draw line from the lvgl documentation examples.
But the drawline example leads to an error:
unknown type name 'lv_point_precise_t'
#include "../../lv_examples.h"
#if LV_USE_LINE && LV_BUILD_EXAMPLES
void lv_example_line_1(void)
{
/*Create an array for the points of the line*/
static **lv_point_precise_t** line_points[] = { {5, 5}, {70, 70}, {120, 10}, {180, 60}, {240, 10} };
/*Create style*/
static lv_style_t style_line;
lv_style_init(&style_line);
lv_style_set_line_width(&style_line, 8);
lv_style_set_line_color(&style_line, lv_palette_main(LV_PALETTE_BLUE));
lv_style_set_line_rounded(&style_line, true);
/*Create a line and apply the new style*/
lv_obj_t * line1;
line1 = lv_line_create(lv_screen_active());
lv_line_set_points(line1, line_points, 5); /*Set the points*/
lv_obj_add_style(line1, &style_line, 0);
lv_obj_center(line1);
}
#endif
This leads (I’m using 9.0 - btw, where can I see which version I’m using? I thought I was using 9.0)
to the error I’m citing iin the subject.
EDIT: I got around the problem for the moment by using lv_point_t
instead.