-
Notifications
You must be signed in to change notification settings - Fork 438
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
Display flickers when ESP32 is in AP mode #92
Comments
Hi, Could you upload some code to replicate it? Are you using master? Regards |
/* LVGL Example project
// Change whether AP or STA mode with define at line 55, note flicker in AP mode #include <stdbool.h> #include "esp_wifi.h" /* Littlevgl specific */ #include "disp_spi.h" /*********************
*********************/ #define MODE_AP_STA 0 //if this is 0 ESP32 will boot in AP mode, 1 will boot in STA mode // Detect the use of a shared SPI Bus and verify the user specified the same SPI bus for both touch and tft #if CONFIG_LVGL_TOUCH_CONTROLLER_SPI_HSPI == 1 #if TFT_SPI_HOST != TOUCH_SPI_HOST #define SHARED_SPI_BUS #define EXAMPLE_ESP_MAXIMUM_RETRY 5
#if MODE_AP_STA == 0 static int s_retry_num = 0; /**********************
#ifdef SHARED_SPI_BUS static void btn_event_cb(lv_obj_t * btn, lv_event_t event); /**********************
static lv_obj_t * cont; /**********************
/**
static void event_handler(void* arg, esp_event_base_t event_base,
#if MODE_AP_STA == 0
#else
#if MODE_AP_STA == 0
#endif
} void lv_tutorial_objects(void)
} void app_main() {
lv_init(); /* Interface and driver initialization / /* Configure the drivers / static lv_color_t buf1[DISP_BUF_SIZE]; lv_disp_drv_t disp_drv; #if CONFIG_LVGL_TOUCH_CONTROLLER != TOUCH_CONTROLLER_NONE esp_register_freertos_tick_hook(lv_tick_task); lv_tutorial_objects(); while (1) { } static void IRAM_ATTR lv_tick_task(void) { #ifdef SHARED_SPI_BUS esp_err_t ret = spi_bus_initialize(TFT_SPI_HOST, &buscfg, 1); /* SPI Devices */ |
That didn't format too well! I'll just email you Carlos. |
Could you create a repo with it? |
I've never done that before, but I'll give it a go!
…On Mon, 6 Apr 2020, 02:06 Carlos Diaz, ***@***.***> wrote:
Could you create a repo with it?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#92 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO2H6Z6HL7XOZVOLREW4U6DRLCUCFANCNFSM4L55C5LQ>
.
|
Thanks for the repo @eddeyonline, I will take a look at it. |
Is the flickering brightness change (a possible hardware power supply issue) or pixel filling flickering? |
I don't think it's a power issue as changing power supply doesn't make a difference and it doesn't flicker when under load in STA mode. |
This issue or pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I've noticed a consistent issue with the display flickering when the ESP32 is in AP or APSTA mode. I'm using a 240x320 2.4" TFT LCD from AliExpress with ILI9341 display driver and XPT2046 touch driver. The display works perfectly when wifi is not enabled or when the ESP32 is connected in STA mode. As soon as it is in AP or APSTA mode, without changing any other factors or connecting to the AP, the display has a constant flicker (maybe 20-30Hz just by looking at it). Any ideas on how to resolve this issue? Thanks!
The text was updated successfully, but these errors were encountered: