rzeldent / esp32-smartdisplay

PlatformIO library LVGL Drivers for Sunton Smart display boards (CYD Cheap Yellow Display). This library supports these boards without any effort. ESP32-2432S024N/R/C, ESP32-2432S028R/C, ESP32-3248S035R/C, ESP32_8048S070N/C
https://github.com/rzeldent/platformio-espressif32-sunton
GNU General Public License v3.0
432 stars 76 forks source link

esp32-8048S050C Wrong Config #221

Open xperiments opened 4 days ago

xperiments commented 4 days ago

Hi @rzeldent,

I have a customer my new 5inch version was not working, screen was white....

After some research (and some fight about speed w Sunton guy who helped a lot) I have found the bug to be in the board config

      "'-D ST7262_PANEL_CONFIG_CLK_SRC=LCD_CLK_SRC_PLL160M'",
      "'-D ST7262_PANEL_CONFIG_TIMINGS_PCLK_HZ=(12.5*1000000)'",
  to
      "'-D ST7262_PANEL_CONFIG_CLK_SRC=LCD_CLK_SRC_PLL240M'",
      "'-D ST7262_PANEL_CONFIG_TIMINGS_PCLK_HZ=(18*1000000)'",

Tested timings up to 20 (artifacts at screen)

Tested from 16M to 19M with good results at 16M

Cheers!!!

rzeldent commented 1 day ago

Hi Pedro,

I do not own this board so cannot validate it works. However I changed the PCLK to 16Mhz in the develop branch for the:

I also tested other bords like the esp32-4848S040CIY1, esp32-8048S070C to use 18Mhz but they start flickering, so reverted that I hope this works...

xperiments commented 1 day ago

@rzeldent The most needed change is the LCD_CLK_SRC_PLL240M

Is that what make the change from not working to working

BTW I have 7, 5 and 2.8 board if you need any test

xperiments commented 1 day ago

Actually w this change it will work fine until 16M

To go up to 24M ( the screen spec) we need to activate 120M in PSRAM but that is only avaliable on idf 5x

xperiments commented 1 day ago

@rzeldent can be great if you can come to discord here https://discord.gg/yRNWJj55 thx!!