void lv_example_obj_1(void)
{
lv_obj_t * obj1;
obj1 = lv_obj_create(lv_screen_active());
lv_obj_set_style_bg_opa(lv_screen_active(),200,0);
// lv_obj_set_style_opa
// lv_obj_set_style_image_opa
lv_obj_set_size(obj1, 100, 50);
lv_obj_align(obj1, LV_ALIGN_CENTER, -60, -30);
lv_obj_set_style_bg_color(obj1,lv_color_black(),0);
// static lv_style_t style_shadow;
// lv_style_init(&style_shadow);
// lv_style_set_shadow_width(&style_shadow, 10);
// lv_style_set_shadow_spread(&style_shadow, 5);
// lv_style_set_shadow_color(&style_shadow, lv_palette_main(LV_PALETTE_BLUE));
// lv_obj_t * obj2;
// obj2 = lv_obj_create(lv_screen_active());
// lv_obj_add_style(obj2, &style_shadow, 0);
// lv_obj_align(obj2, LV_ALIGN_CENTER, 60, 30);
}
set RENDER_MODE to LV_DISPLAY_RENDER_MODE_PARTIAL,and run the above code.
I get this:
Has anyone else encountered a similar issue?