The following is my code,
const lv_style_const_prop_t clear_style_props[] = {
LV_STYLE_CONST_BG_OPA(LV_OPA_0),
LV_STYLE_CONST_BORDER_OPA(LV_OPA_0),
LV_STYLE_CONST_SHADOW_OPA(LV_OPA_0),
LV_STYLE_CONST_TEXT_COLOR(lv_color_black()),
LV_STYLE_CONST_PROPS_END //no longer works
};
LV_STYLE_CONST_INIT(clear_style,clear_style_props);
lv_obj_add_style(delbtn, &clear_style, 0);
I am trying to initialize style properties as a constant. The example given in the documentation says to use LV_STYLE_CONST_PROPS_END to finish the prop array, but I am getting errors in vscode saying that LV_STYLE_CONST_PROPS_END is undefined. What statement should I use instead to finish the const style props array?