Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vertical flickering background artifacts when LV_THEME_DEFAULT_DARK=1 #207

Open
IvanVnucec opened this issue Oct 23, 2024 · 0 comments
Open

Comments

@IvanVnucec
Copy link

LVGL version

v8.3

What happened?

I'm using Sunton CYD (Cheap Yellow Display) PlatformIo Board.
The project is based on the rzeldent/platformio-espressif32-sunton.
I've enabled LV_THEME_DEFAULT_DARK flag in the lv_conf.h and added simple button to the default screen and the screen had strange flickering artifacts (see image below).

I've also tried LV_THEME_DEFAULT_DARK=0 and the flickering disappears.
However, when I set darker grey background with lv_obj_set_style_bg_color(lv_scr_act(), lv_palette_darken(LV_PALETTE_GREY, 3), 0), there is a visible stripe flickering at x=0. Moreover, every darken palette besides level 0 and 1 has stripe flickering.

357397342-dcbb482d-648d-4234-83af-66bd87735783

How to reproduce?

lv_conf.h:

#define LV_USE_THEME_DEFAULT 1
#if LV_USE_THEME_DEFAULT

    /*0: Light mode; 1: Dark mode*/
    #define LV_THEME_DEFAULT_DARK 1

    /*1: Enable grow on press*/
    #define LV_THEME_DEFAULT_GROW 0

    /*Default transition time in [ms]*/
    #define LV_THEME_DEFAULT_TRANSITION_TIME 80
#endif /*LV_USE_THEME_DEFAULT*/

main.cpp:

#include <Arduino.h>

#include <esp32_smartdisplay.h>
#include <lvgl.h>

void setup()
{
    smartdisplay_init();
    smartdisplay_lcd_set_backlight(1.0f);

    lv_disp_t *default_display = lv_disp_get_default();
    lv_disp_set_rotation(default_display, LV_DISP_ROT_270);

    // add button to the center
    lv_obj_t *btn = lv_btn_create(lv_scr_act());
    lv_obj_center(btn);
    lv_obj_t *label = lv_label_create(btn);
    lv_label_set_text_static(label, "Click me!");
}

void loop()
{
    lv_timer_handler();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant