VIEWESMART / ESP32-Arduino

Arduino source code
MIT License
2 stars 5 forks source link

Bug using WiFI - The Screen verticaly scrools ! #4

Open Ifousoft opened 3 weeks ago

Ifousoft commented 3 weeks ago

Compiling and testing your demonstration works well for 7 inches with LVGL 8.3 - ESP-LCD board 3.x.x

Nevertheless, when I add Wifi Connexion, the screen starts scrolling down... alone... Every few seconds, the screen scroll down by around 20 pixels.

I just added in your demo code byte i = 0; if ((WiFi.status() != WL_CONNECTED) ) { WiFi.disconnect(); WiFi.begin("XX", "XXX"); while( WiFi.status() != WL_CONNECTED && i < 50) { delay(200); i++; } The code pass well and next the loop is executed... But the screen scrolls...

Any idea ?

Thanks.

Such large screen without able to connect to network is a pity... :-)

Ifousoft commented 3 weeks ago

Perhaps a speed bus problem, but I don't understand how to change the value regarding the comment I found in another forum: I Just had to adjust the refresh speed of the bus of the screen, moving from 16Mhz to 13Mhz. I tried above, but this is not working, 13 MHz seems to be the maximum:

Arduino_RPi_DPI_RGBPanel lcd = new Arduino_RPi_DPI_RGBPanel( bus, 800 / width /, 0 / hsync_polarity /, 210 / hsync_front_porch /, 1 / hsync_pulse_width /, 46 / hsync_back_porch /, 480 / height /, 0 / vsync_polarity /, 22 / vsync_front_porch /, 1 / vsync_pulse_width /, 23 / vsync_back_porch /, 0 / pclk_active_neg /, 13000000 / Instead 16 Mhz - prefer_speed /, true / auto_flush */);

I used VSCode and platformio...

VIEWESMART commented 3 weeks ago

Compiling and testing your demonstration works well for 7 inches with LVGL 8.3 - ESP-LCD board 3.x.x

Nevertheless, when I add Wifi Connexion, the screen starts scrolling down... alone... Every few seconds, the screen scroll down by around 20 pixels.

I just added in your demo code byte i = 0; if ((WiFi.status() != WL_CONNECTED) ) { WiFi.disconnect(); WiFi.begin("XX", "XXX"); while( WiFi.status() != WL_CONNECTED && i < 50) { delay(200); i++; } The code pass well and next the loop is executed... But the screen scrolls...

Any idea ?

Thanks.

Such large screen without able to connect to network is a pity... :-)

Hi, I hope this email finds you well. I was wondering where you downloaded the Wifi library you are using? Is it for Arduino or something else? I would like to suggest that you consider using the Wifi library newly provided by Espressif for ESP32. It has shown great performance and stability in our tests and might be a good alternative for your project. Looking forward to your reply. Best regards, VIEWE

VIEWESMART commented 3 weeks ago

Perhaps a speed bus problem, but I don't understand how to change the value regarding the comment I found in another forum: I Just had to adjust the refresh speed of the bus of the screen, moving from 16Mhz to 13Mhz. I tried above, but this is not working, 13 MHz seems to be the maximum:

Arduino_RPi_DPI_RGBPanel lcd = new Arduino_RPi_DPI_RGBPanel( bus, 800 / width /, 0 / hsync_polarity /, 210 / hsync_front_porch /, 1 / hsync_pulse_width /, 46 / hsync_back_porch /, 480 / height /, 0 / vsync_polarity /, 22 / vsync_front_porch /, 1 / vsync_pulse_width /, 23 / vsync_back_porch /, 0 / pclk_active_neg /, 13000000 / Instead 16 Mhz - prefer_speed /, true / auto_flush */);

I used VSCode and platformio...

Because we have not used platformio, we are not very clear what kind of bugs will appear in the debugging process, but it is similar to Arduino, and it may increase the actual bus speed when you enable WIFI, resulting in the instability of the screen, but we cannot analyze the specific reasons for this at the moment. I'm really sorry for the inconvenience.

Ifousoft commented 2 weeks ago

Compiling and testing your demonstration works well for 7 inches with LVGL 8.3 - ESP-LCD board 3.x.x Nevertheless, when I add Wifi Connexion, the screen starts scrolling down... alone... Every few seconds, the screen scroll down by around 20 pixels. I just added in your demo code byte i = 0; if ((WiFi.status() != WL_CONNECTED) ) { WiFi.disconnect(); WiFi.begin("XX", "XXX"); while( WiFi.status() != WL_CONNECTED && i < 50) { delay(200); i++; } The code pass well and next the loop is executed... But the screen scrolls... Any idea ? Thanks. Such large screen without able to connect to network is a pity... :-)

Hi, I hope this email finds you well. I was wondering where you downloaded the Wifi library you are using? Is it for Arduino or something else? I would like to suggest that you consider using the Wifi library newly provided by Espressif for ESP32. It has shown great performance and stability in our tests and might be a good alternative for your project. Looking forward to your reply. Best regards, VIEWE

I use ESP32 under arduino framework. The Wifi lib is embedded. I can't change it. But, you asked to used espressif 3.x.x in order that I can compile your code. How can I use the latest ESP32 wifi version ?

As requested I put in my platformio.ini file the esp32 version: platform_packages = platformio/framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git platformio/framework-arduinoespressif32-libs@https://github.com/espressif/esp32-arduino-libs.git#idf-release/v5.1

After some test, the Wifi.begin() call starts the screen scrolling...

Thanks!

Ifousoft commented 2 weeks ago

For information, using the latest ESP32 version (and Wifi libs), I got this compilation error: .pio/libdeps/esplcd/ESP32_Display_Panel/src/backlight/ESP_PanelBacklight.cpp: In constructor 'ESP_PanelBacklight::ESP_PanelBacklight(int, bool, bool)': .pio/libdeps/esplcd/ESP32_Display_Panel/src/backlight/ESP_PanelBacklight.cpp:18:92: error: no matching function for call to 'ledc_timer_config_t::ledc_timer_config_t()'

VIEWESMART commented 2 weeks ago

Compiling and testing your demonstration works well for 7 inches with LVGL 8.3 - ESP-LCD board 3.x.x Nevertheless, when I add Wifi Connexion, the screen starts scrolling down... alone... Every few seconds, the screen scroll down by around 20 pixels. I just added in your demo code byte i = 0; if ((WiFi.status() != WL_CONNECTED) ) { WiFi.disconnect(); WiFi.begin("XX", "XXX"); while( WiFi.status() != WL_CONNECTED && i < 50) { delay(200); i++; } The code pass well and next the loop is executed... But the screen scrolls... Any idea ? Thanks. Such large screen without able to connect to network is a pity... :-)

Hi, I hope this email finds you well. I was wondering where you downloaded the Wifi library you are using? Is it for Arduino or something else? I would like to suggest that you consider using the Wifi library newly provided by Espressif for ESP32. It has shown great performance and stability in our tests and might be a good alternative for your project. Looking forward to your reply. Best regards, VIEWE

I use ESP32 under arduino framework. The Wifi lib is embedded. I can't change it. But, you asked to used espressif 3.x.x in order that I can compile your code. How can I use the latest ESP32 wifi version ?

As requested I put in my platformio.ini file the esp32 version: platform_packages = platformio/framework-arduinoespressif32@https://github.com/espressif/arduino-esp32.git platformio/framework-arduinoespressif32-libs@https://github.com/espressif/esp32-arduino-libs.git#idf-release/v5.1

After some test, the Wifi.begin() call starts the screen scrolling...

Thanks!

Hello

Thank you for reaching out. To use the ESP32 WiFi functionality, you don’t need to download any additional libraries. If you’re using the Arduino IDE, you can find examples related to WiFi usage in the following directory on your computer: C:\Users\PC\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.4\libraries\WiFi\examples Please refer to these examples to guide you in implementing WiFi features. Ensure that there are no conflicting WiFi libraries in your library folder that might interfere with the ESP32 WiFi library.

The “3.0.4” in the file path indicates the version of the ESP32 package you have installed. I recommend not upgrading your library files each time you open the Arduino IDE unless necessary, to maintain compatibility and stability.

I hope this information helps.Please go ahead and try it on your end first. I will also make time to test it on my side as well. Please feel free to reach out if you have any further questions or need additional support.

Best regards,

VIEWE smartrd1@chinasunyee.com

Ifousoft commented 2 weeks ago

I think we don't understand :-) I don't used a specific Wifi lib. I use the embedded one. I use the example code you provided for LVGL demo. Please find here the source code and the libraries version displayed during compilation process.

With this code, the screen scrolls itself each some seconds...

If I comment the line WiFi.begin("SALON_IFOU", "my password"); It works well as in your demonstration.

How can I solve that ? (I hope we could solve that, I bought a second screen from you...)

Thanks!


Here is the code I use (as simple as I can): /**

include

include

include

include "lvgl_port_v8.h"

include

include <demos/lv_demos.h>

void setup() { String title = "LVGL porting example";

Serial.begin(115200);
Serial.println(title + " start");

Serial.println("Initialize panel device");
ESP_Panel *panel = new ESP_Panel();
panel->init();

if LVGL_PORT_AVOID_TEAR

// When avoid tearing function is enabled, configure the RGB bus according to the LVGL configuration
ESP_PanelBus_RGB *rgb_bus = static_cast<ESP_PanelBus_RGB *>(panel->getLcd()->getBus());
rgb_bus->configRgbFrameBufferNumber(LVGL_PORT_DISP_BUFFER_NUM);
rgb_bus->configRgbBounceBufferSize(LVGL_PORT_RGB_BOUNCE_BUFFER_SIZE);

endif

panel->begin();

Serial.println("Initialize LVGL");
lvgl_port_init(panel->getLcd(), panel->getTouch());

Serial.println("Create UI");
/* Lock the mutex due to the LVGL APIs are not thread-safe */
lvgl_port_lock(-1);

lv_demo_widgets();

/* Release the mutex */
lvgl_port_unlock();

Serial.println(title + " end");

if ((WiFi.status() != WL_CONNECTED) )
{
  byte i = 0;
  WiFi.disconnect();
  WiFi.begin("SALON_IFOU", "my password");
  while( WiFi.status() != WL_CONNECTED && i < 50)
  {
    delay(200);
    i++;
  } /* End of while */
}

}

void loop() { Serial.println("IDLE loop"); delay(1000); }


Here are all the libraries versions for compilation:

PLATFORM: Espressif 32 (6.9.0) > ESP-LCD (16M QIO Flash & OPI PSRAM) HARDWARE: ESP32S3 240MHz, 320KB RAM, 16MB Flash DEBUG: Current (esp-builtin) On-board (esp-builtin) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:


VIEWESMART commented 2 weeks ago

I think we don't understand :-) I don't used a specific Wifi lib. I use the embedded one. I use the example code you provided for LVGL demo. Please find here the source code and the libraries version displayed during compilation process.

With this code, the screen scrolls itself each some seconds...

If I comment the line WiFi.begin("SALON_IFOU", "my password"); It works well as in your demonstration.

How can I solve that ? (I hope we could solve that, I bought a second screen from you...)

Thanks!

Here is the code I use (as simple as I can): /**

  • LVGL Porting Example

*/

include #include #include #include "lvgl_port_v8.h"

include

include <demos/lv_demos.h>

void setup() { String title = "LVGL porting example";

Serial.begin(115200);
Serial.println(title + " start");

Serial.println("Initialize panel device");
ESP_Panel *panel = new ESP_Panel();
panel->init();

if LVGL_PORT_AVOID_TEAR // When avoid tearing function is enabled, configure the RGB bus according to the LVGL configuration ESP_PanelBus_RGB rgb_bus = static_cast<ESP_PanelBus_RGB >(panel->getLcd()->getBus()); rgb_bus->configRgbFrameBufferNumber(LVGL_PORT_DISP_BUFFER_NUM); rgb_bus->configRgbBounceBufferSize(LVGL_PORT_RGB_BOUNCE_BUFFER_SIZE); #endif panel->begin();

Serial.println("Initialize LVGL");
lvgl_port_init(panel->getLcd(), panel->getTouch());

Serial.println("Create UI");
/* Lock the mutex due to the LVGL APIs are not thread-safe */
lvgl_port_lock(-1);

lv_demo_widgets();

/* Release the mutex */
lvgl_port_unlock();

Serial.println(title + " end");

if ((WiFi.status() != WL_CONNECTED) )
{
  byte i = 0;
  WiFi.disconnect();
  WiFi.begin("SALON_IFOU", "my password");
  while( WiFi.status() != WL_CONNECTED && i < 50)
  {
    delay(200);
    i++;
  } /* End of while */
}

}

void loop() { Serial.println("IDLE loop"); delay(1000); }

Here are all the libraries versions for compilation:

PLATFORM: Espressif 32 (6.9.0) > ESP-LCD (16M QIO Flash & OPI PSRAM) HARDWARE: ESP32S3 240MHz, 320KB RAM, 16MB Flash DEBUG: Current (esp-builtin) On-board (esp-builtin) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:

  • framework-arduinoespressif32 @ 3.0.5+sha.e27a050
  • framework-arduinoespressif32-libs @ 5.1.0+sha.d38afc77db.sha.1a029d5
  • tool-esptoolpy @ 1.40501.0 (4.5.1)
  • tool-mkfatfs @ 2.0.1
  • tool-mklittlefs @ 1.203.210628 (2.3)
  • tool-mkspiffs @ 2.230.0 (2.30)
  • toolchain-riscv32-esp @ 12.2.0+20230208
  • toolchain-xtensa-esp32s3 @ 12.2.0+20230208 LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf LDF Modes: Finder ~ chain, Compatibility ~ soft Found 84 compatible libraries Scanning dependencies... Dependency Graph |-- ESP32_Display_Panel @ 0.1.6 |-- lvgl @ 8.3.0-dev |-- WiFi @ 3.0.5

Thank you very much for purchasing the product from VIEWE, and thank you for the code and information you provided. Please don't worry. I will use your code to test in Arduino IDE, and I will give you the feedback of the result as soon as possible (please forgive me for being busy recently).

Ifousoft commented 1 week ago

Could I have news about this issue ? Using another lib, with the same problem, it seams that I need to update the sdkconfig file to recompile the arduino framework libs. But I use arduino framework under platformio and it seems that the sdkconfig file couldn't be used using arduino framework.

How to solve this issue ? Thanks!

Ifousoft commented 1 week ago

If you have the right environment to use sdkconfig and/or menuconfig, could you please provide a version of esp libs for arduino with needed configuration ? Regarding other comments, it seems that the configuration should be: CONFIG_SPIRAM_MODE_OCT=y CONFIG_SPIRAM_IGNORE_NOTFOUND=y

CONFIG_SPIRAM_MEMTEST is not set

CONFIG_LCD_RGB_ISR_IRAM_SAFE=y CONFIG_GDMA_CTRL_FUNC_IN_IRAM=y

bounce buffer mode relies on GDMA EOF interrupt to be service-able

I2S_ISR_IRAM_SAFE has to be set!! Done in common config

CONFIG_GDMA_ISR_IRAM_SAFE=y

Enable the XIP-PSRAM feature, so the ext-mem cache won't be disabled when SPI1 is operating the main flash

CONFIG_SPIRAM_FETCH_INSTRUCTIONS=y CONFIG_SPIRAM_RODATA=y

Thanks!

VIEWESMART commented 1 week ago

If you have the right environment to use sdkconfig and/or menuconfig, could you please provide a version of esp libs for arduino with needed configuration ? Regarding other comments, it seems that the configuration should be: CONFIG_SPIRAM_MODE_OCT=y CONFIG_SPIRAM_IGNORE_NOTFOUND=y

CONFIG_SPIRAM_MEMTEST is not set

CONFIG_LCD_RGB_ISR_IRAM_SAFE=y CONFIG_GDMA_CTRL_FUNC_IN_IRAM=y

bounce buffer mode relies on GDMA EOF interrupt to be service-able

I2S_ISR_IRAM_SAFE has to be set!! Done in common config

CONFIG_GDMA_ISR_IRAM_SAFE=y

Enable the XIP-PSRAM feature, so the ext-mem cache won't be disabled when SPI1 is operating the main flash

CONFIG_SPIRAM_FETCH_INSTRUCTIONS=y CONFIG_SPIRAM_RODATA=y

Thanks!

We are very sorry for the inconvenience, but don't worry, we are actively working on a solution, and we have found a few possible reasons why you may have bugs when using WIFI: The arduino sdk has poor performance by default, refer to the documentation to replace the high performance version, https://github.com/esp-arduino-libs/arduino-esp32-sdk#for-sdks-suffixed-with--h Since you raised this issue, we have taken it seriously and are trying to reconstruct your scene and find out all possible causes.

Ifousoft commented 6 days ago

Sorry, it failes again. I download it and replace my esps3s3 adruino-libs by the one provided on the link and it always scrolls the screen when connected to Wifi... Another solution ? I understand thanks to other forum that I have to use menuconfig to configure the arduinolibs to solve that. Nevertheless, as I am in arduino framework (and not esp-idf), I can't use menuconfig because the arduino libs I use are compiled in stone...

Any other ideas ? Thanks.

VIEWESMART commented 5 days ago

Sorry, it failes again. I download it and replace my esps3s3 adruino-libs by the one provided on the link and it always scrolls the screen when connected to Wifi... Another solution ? I understand thanks to other forum that I have to use menuconfig to configure the arduinolibs to solve that. Nevertheless, as I am in arduino framework (and not esp-idf), I can't use menuconfig because the arduino libs I use are compiled in stone...

Any other ideas ? Thanks.

I have tried and solved this problem. I will inform you of all the procedures. Please send the link to you after I upload it

Ifousoft commented 4 days ago

I have tried and solved this problem. I will inform you of all the procedures. Please send the link to you after I upload it

Do you want me to send you something ? Or do I have just to wait for a link from you ?

Ifousoft commented 4 days ago

I have tried and solved this problem. I will inform you of all the procedures. Please send the link to you after I upload it

Do you want me to send you something ? Or do I have just to wait for a link from you ?

VIEWESMART commented 4 days ago

I have tried and solved this problem. I will inform you of all the procedures. Please send the link to you after I upload it

Do you want me to send you something ? Or do I have just to wait for a link from you ?

I will send you a link and a specification document. Due to a time - related delay, I'm currently working on them and expect to complete and send them to you before 4 o'clock this afternoon.

VIEWESMART commented 3 days ago

I have tried and solved this problem. I will inform you of all the procedures. Please send the link to you after I upload it

Do you want me to send you something ? Or do I have just to wait for a link from you ?

Sorry for the late reply, now I will tell you my solution. My example is just to use WIFI to control the backlight of my display screen. You need to do the following steps:

  1. Replace the package of your esp32 development board according to the link: https://github.com/VIEWESMART/Arduino-ESP32-SDK
  2. Download the sample code:https://github.com/VIEWESMART/ESP32-Arduino/tree/main/examples/7.0inch/lvgl_wifi
  3. Options for configuring tools for Arduino IDE: tools

I hope you can succeed this time

VIEWESMART commented 3 days ago

I have tried and solved this problem. I will inform you of all the procedures. Please send the link to you after I upload it

Do you want me to send you something ? Or do I have just to wait for a link from you ?

Sorry, I forgot to tell you how to control the lighting of the backlight. Your WIFI name and password can be modified according to the code by yourself or your mobile phone hotspot ssid: V587; password: 12345678; After the link is successful, go to the mobile phone hotspot to see the linked IP in the background, and enter IP search in the mobile browser to control the backlight.

Ifousoft commented 3 days ago

Sorry, it won't... When I tried to compile with reference to github repository I got: unable to create file esp32-3.0.3-h/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32s2/include/espressif__esp-tflite-micro/signal/micro/kernels/filter_bank_spectral_subtraction_flexbuffers_generated_data.h: Filename too long

Sorry, I am under Windows fucking OS... That I need for other applications :-(

I downloaded the whole archive and put on my local drive. But my platformio express an error on the arduino libs. I write in platformio.ini: platform_packages = platformio/framework-arduinoespressif32@C:\Users\Ifou.platformio\packages\esp32_3.03.Viewsmart platformio/framework-arduinoespressif32-libs@C:\Users\Ifou.platformio\packages\esp32_3.03.Viewsmart_Arduino_libs\idf-release_v5.1-dc859c1e67

The compilation process says: Tool Manager: Installing C:\Users\Ifou.platformio\packages\esp32_3.03.Viewsmart_Arduino_libs\idf-release_v5.1-dc859c1e67 VCSBaseException: VCS: Unknown repository type C:\Users\Ifou.platformio\packages\esp32_3.03.Viewsmart_Arduino_libs\idf-release_v5.1-dc859c1e67

But the directory contains esp32, esp32s3, package.json, tools.json... files...

Sorry...

Ifousoft commented 3 days ago

I am trying to search for other solutions in // and found that Adafruit GFX lib could work with LVGL and the current version of esp32 framework. Nevertheless, to use GT911 lib for the touch screen, I need to provide the pins for touch: TOUCH_SCL, TOUCH_SDA, TOUCH_RES, TOUCH_INT What is the value of these pins number on your screen ?

Thanks!

VIEWESMART commented 3 days ago

I am trying to search for other solutions in // and found that Adafruit GFX lib could work with LVGL and the current version of esp32 framework. Nevertheless, to use GT911 lib for the touch screen, I need to provide the pins for touch: TOUCH_SCL, TOUCH_SDA, TOUCH_RES, TOUCH_INT What is the value of these pins number on your screen ?

Thanks!

image

VIEWESMART commented 3 days ago

Sorry, it won't... When I tried to compile with reference to github repository I got: unable to create file esp32-3.0.3-h/esp32/tools/esp32-arduino-libs/idf-release_v5.1-dc859c1e67/esp32s2/include/espressif__esp-tflite-micro/signal/micro/kernels/filter_bank_spectral_subtraction_flexbuffers_generated_data.h: Filename too long

Sorry, I am under Windows fucking OS... That I need for other applications :-(

I downloaded the whole archive and put on my local drive. But my platformio express an error on the arduino libs. I write in platformio.ini: platform_packages = platformio/framework-arduinoespressif32@C:\Users\Ifou.platformio\packages\esp32_3.03.Viewsmart platformio/framework-arduinoespressif32-libs@C:\Users\Ifou.platformio\packages\esp32_3.03.Viewsmart_Arduino_libs\idf-release_v5.1-dc859c1e67

The compilation process says: Tool Manager: Installing C:\Users\Ifou.platformio\packages\esp32_3.03.Viewsmart_Arduino_libs\idf-release_v5.1-dc859c1e67 VCSBaseException: VCS: Unknown repository type C:\Users\Ifou.platformio\packages\esp32_3.03.Viewsmart_Arduino_libs\idf-release_v5.1-dc859c1e67

But the directory contains esp32, esp32s3, package.json, tools.json... files...

Sorry...

I'm surprised to hear this news. I'm sure it can work. Do you need me to remotely control your computer for you to see? Or I'll take the time to record a video to explain the steps for you? I think you may have done some steps wrong.

Ifousoft commented 1 day ago

Thanks for the proposal. Nevertheless, I use VSCode but Plateformio and arduino framework for esp32 that seems not be the same as your system. Nevertheless if you could explain me how to say to platformio to use the updated esp32 version you provided, You are welcome! :-)

Ifousoft commented 27 minutes ago

Solved! Finally... The screen is no more scrolling, I can connect with Wifi and get WifiSecured connection!

Using the framework from Jason2866, our 3.03 version of platform and your High perfs libs

Thanks a lot for your time!

Here is my platformio file:

[env:esplcd_wifi_secure_works] platform = https://github.com/Jason2866/platform-espressif32.git#Arduino/IDF5 platform_packages = platformio/framework-arduinoespressif32@C:\Users\Ifou.platformio\packages\esp32_3.03.Viewsmart platformio/framework-arduinoespressif32-libs@C:\Users\Ifou.platformio\packages\ESO32_Arduino_Libs_High_Perf board = ESP-LCD build_flags = -DBOARD_HAS_PSRAM -fexceptions board_build.arduino.memory_type = qio_opi board_build.partitions = default_16MB.csv board_upload.flash_size = 16MB framework = arduino monitor_speed = 115200 upload_speed = 921600

Ifousoft commented 25 minutes ago

Just a last comment: your porting of LVGL works fine BUT not the rotation. As you implemented "by hand" the rotation, in case of a rotation different from 0, the ESP32 CPU raise 100% of load... I think you could improve using rotation from... LVGL or ESP32Display Panel ?

Thanks!

VIEWESMART commented 4 minutes ago

Solved! Finally... The screen is no more scrolling, I can connect with Wifi and get WifiSecured connection!

Using the framework from Jason2866, our 3.03 version of platform and your High perfs libs

Thanks a lot for your time!

Here is my platformio file:

[env:esplcd_wifi_secure_works] platform = https://github.com/Jason2866/platform-espressif32.git#Arduino/IDF5 platform_packages = platformio/framework-arduinoespressif32@C:\Users\Ifou.platformio\packages\esp32_3.03.Viewsmart platformio/framework-arduinoespressif32-libs@C:\Users\Ifou.platformio\packages\ESO32_Arduino_Libs_High_Perf board = ESP-LCD build_flags = -DBOARD_HAS_PSRAM -fexceptions board_build.arduino.memory_type = qio_opi board_build.partitions = default_16MB.csv board_upload.flash_size = 16MB framework = arduino monitor_speed = 115200 upload_speed = 921600

I'm really glad to hear this news. Congratulations on finally solving this problem. I'm terribly sorry for having wasted a lot of your time. Could you leave your contact information (such as email or something else)? Then we can communicate with each other on a long-term basis.

VIEWESMART commented 2 minutes ago

Just a last comment: your porting of LVGL works fine BUT not the rotation. As you implemented "by hand" the rotation, in case of a rotation different from 0, the ESP32 CPU raise 100% of load... I think you could improve using rotation from... LVGL or ESP32Display Panel ?

Thanks!

I'll keep an eye on this problem and will inform you in time if I have any better ideas.