Hi I have started a small lvgl project using esp32-wrover (8MB PSRAM) and il9488 and xpt2046. But when I run the program, the screen turns black and does not respond.
The project without lvgl has no problems and the display and xpt2046 work properly.
Make sure you are updated to 2024.8.1 there are LVGL bug fixes in this release
Are you turning on the backlight for the screen?
Rename your touchscreen to my_touchscreen then use the code below. my_touchscreen is the name in a lot of examples and it’s good to keep consistency. The new format is to use - display_id: name instead of just - name
Ya, i didnt think it was the primary issue, just thought id throw the suggestion out there to try.
If I were you, id go ask in the Esphome Discord channel. Thats where all the developers and really smart people hang out. Youll shouldnt have a problem getting help in there.
First confirm your display is working - remove the LVGL stuff and add show_test_card: true and remove update_interval: never in the display config. That should show a test pattern.
Then restore the LVGL config, get rid of the “none” settings for logs (component at least) and copy the complete serial log and post it here.
Are you sure your chip has octal PSRAM? You should see lines like this in the log:
[20:52:10]I (287) MSPI Timing: PSRAM timing tuning index: 10
[20:52:10]I (288) esp_psram: Found 8MB PSRAM device
[20:52:10]I (288) esp_psram: Speed: 80MHz
[20:52:10]I (321) mmu_psram: Read only data copied and mapped to SPIRAM
[20:52:10]I (408) mmu_psram: Instructions copied and mapped to SPIRAM
[20:52:10]I (408) cpu_start: Multicore app
In file included from /data/cache/platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/sys-include/sys/reent.h:503,
from /data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/newlib/platform_include/sys/reent.h:17,
from /data/cache/platformio/packages/toolchain-xtensa-esp32/xtensa-esp32-elf/sys-include/stdio.h:60,
from /data/cache/platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:27,
from src/esphome/core/macros.h:7,
from src/esphome/core/defines.h:2,
from src/esphome/components/api/api_connection.h:3,
from src/esphome/components/api/api_connection.cpp:1:
/data/cache/platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/newlib/platform_include/assert.h:20:10: fatal error: sdkconfig.h: No such file or directory
I have tried building this on MacOS with esphome installed, plus on a HAYellow.
I am trying another project using a big e-paper screen with LVGL and am having problems again.
Tried the fixes that worked before.
The first confusing issue is with PSRAM.
I purchased an ESP32S2 which is supposed to have 2Meg of PSRAM. During startup, I see the following lines:
[14:18:42][C][psram:016]: PSRAM:
[14:18:42][C][psram:019]: Available: NO
I have psram: in my config as suggested.
My display is a WaveShare 7.5” B+W, it came with HAT Rev 2.3. I am trying to use the driver 7.50inV2p . I have tried other ones.
NB. The HAT has a new pin (currently unused) called PWR - unsure of it’s purpose.
The project with LVGL always reports that LVGL failed to setup.
I followed the advice above and commented out the LVGL, then made the adjustments to display the test card. All that is drawn is a thin border with a little square in one corner.