#if 1
static lv_style_t style;
lv_style_init(&style);
lv_style_set_line_color(&style, lv_palette_main(LV_PALETTE_GREY));
lv_style_set_line_width(&style, 6);
lv_style_set_line_rounded(&style, true);
/*Create an object with the new style*/
lv_obj_t * obj = lv_line_create(lv_scr_act());
lv_obj_add_style(obj, &style, 0);
static lv_point_t p[] = {{10, 30}, {30, 50}, {100, 0},{100, 200}};
lv_line_set_points(obj, p, 4);
lv_obj_center(obj);
#endif
08 lvgl画点成线
最新推荐文章于 2024-05-08 18:28:38 发布