-
Notifications
You must be signed in to change notification settings - Fork 19
Closed
Description
无法叠加在scope上
代码如下
sgl_obj_t* scope = sgl_scope_create(NULL);
sgl_obj_set_pos(scope, 0, 0);
sgl_obj_set_size(scope, 160, 80);
sgl_scope_set_bg_color(scope, sgl_rgb(0x00, 0x00, 0x00));
sgl_scope_set_waveform_color(scope, sgl_rgb(0x00, 0xFF, 0x00));
sgl_scope_set_grid_color(scope, sgl_rgb(0x32, 0x32, 0x32));
sgl_scope_set_line_width(scope, 2);
sgl_scope_set_alpha(scope, 255);
sgl_scope_set_grid_line(scope, 1);
sgl_scope_enable_auto_scale(scope, true);
sgl_scope_set_max_display_points(scope, 160);
sgl_scope_set_range(scope, 0, 1600);
sgl_scope_set_y_label_font(scope, &consolas14);
sgl_scope_show_y_labels(scope, true);
sgl_scope_set_data_buffer(scope, scope_buffer, 160);
sgl_obj_t *label = sgl_label_create(NULL);
sgl_obj_set_pos(label , 0, 0);
sgl_obj_set_size(label , 80, 50);
sgl_label_set_font(label , &consolas14);
sgl_label_set_text(label , "label test");
sgl_obj_move_top(fanspeed_label);
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels