You ❤️ it?
Please ⭐ it!
rzeldent / esp32-smartdisplay-demo Goto Github PK
View Code? Open in Web Editor NEWDemo project for esp32-smartdisplay
Demo project for esp32-smartdisplay
`rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13232
load:0x40080400,len:3028
entry 0x400805e4
[ 26][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, A PB: 80000000 Hz
[ 5047][I][main.cpp:27] setup(): Board: esp32-3248S035C
[ 5047][I][main.cpp:28] setup(): CPU: ESP32-D0WD-V3 rev3, CPU Freq: 240 Mhz, 2 core(s)
[ 5049][I][main.cpp:29] setup(): Free heap: 213376 bytes
[ 5054][I][main.cpp:30] setup(): Free PSRAM: 0 bytes
[ 5059][I][main.cpp:31] setup(): SDK version: v4.4.5
[ 5082][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 0 - WIFI_READY
[ 5181][V][WiFiGeneric.cpp:340] _arduino_event_cb(): STA Started
[ 5185][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 2 - STA_START
[ 5197][V][WiFiGeneric.cpp:97] set_esp_interface_ip(): Configuring Station static IP: 0.0.0.0, MASK: 0.0.0.0, GW: 0.0.0.0
[ 5815][V][WiFiGeneric.cpp:355] _arduino_event_cb(): STA Connected: SSID: MACHADO, BSSID: e8:01:8d:e2:4c:b0, Channel: 11, Auth: WPA_WPA2_PSK
[ 5817][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 4 - STA_CONNECTED
[ 5857][V][WiFiGeneric.cpp:369] _arduino_event_cb(): STA Got New IP:192.168.1.24
[ 5858][D][WiFiGeneric.cpp:1035] _eventCallback(): Arduino Event: 7 - STA_GOT_IP
[ 5861][D][WiFiGeneric.cpp:1098] _eventCallback(): STA IP: 192.168.1.24, MASK: 255.255.255.0, GW: 192.168.1.1
[ 5912][V][ssl_client.cpp:321] stop_ssl_socket(): Cleaning SSL connection.
[ 6181][I][WiFiClient.cpp:253] connect(): select returned due to timeout 250 ms for fd 48
[ 6684][V][ssl_client.cpp:321] stop_ssl_socket(): Cleaning SSL connection.
[ 6943][D][esp32_smartdisplay.c:209] smartdisplay_init(): smartdisplay_init
[ 6946][D][lvgl_st7796_spi.c:33] lvgl_lcd_init(): lvgl_lcd_init
[ 7172][D][esp32_smartdisplay.c:109] smartdisplay_lcd_set_backlight(): smartdisplay_lcd_set_backlight. duty:0.500000
[ 7174][D][lvgl_gt911_i2c.c:167] lvgl_touch_init(): lvgl_touch_init
[ 7179][D][lvgl_gt911_i2c.c:179] lvgl_touch_init(): i2c_param_config. host: 0
[ 7186][D][lvgl_gt911_i2c.c:181] lvgl_touch_init(): i2c_driver_install host: 0
[ 7193][D][lvgl_gt911_i2c.c:197] lvgl_touch_init(): esp_lcd_new_panel_io_i2c. host: 0
[ 7201][D][lvgl_gt911_i2c.c:201] lvgl_touch_init(): GT911 productId: 911
[ 7207][D][lvgl_gt911_i2c.c:202] lvgl_touch_init(): GT911 fwId: 1060
[ 7213][D][lvgl_gt911_i2c.c:203] lvgl_touch_init(): GT911 xResolution/yResolution: (320, 480)
[ 7221][D][lvgl_gt911_i2c.c:204] lvgl_touch_init(): GT911 vendorId: 00
[ 7249][D][lvgl_gt911_i2c.c:248] lvgl_touch_init(): esp_lcd_touch_new_i2c_gt911. host: 0
[ 7249][D][esp32_smartdisplay.c:36] lvgl_update_callback(): lvgl_update_callback
[ 7272][D][esp32_smartdisplay.c:162] smartdisplay_led_set_rgb(): smartdisplay_led_set_rgb. R:1, G:0, B:0
[ 7272][D][esp32-hal-adc.c:194] __analogReadMilliVolts(): eFuse Vref: Supported
[ 7278][I][esp32-hal-adc.c:235] __analogReadMilliVolts(): ADC1: Characterized using eFuse Vref: 1086
Guru Meditation Error: Core 1 panic'ed (StoreProhibited). Exception was unhandled.
Core 1 register dump:
PC : 0x401bd004 PS : 0x00060d30 A0 : 0x800f2d04 A1 : 0x3ffd7730
A2 : 0x00000000 A3 : 0x00000010 A4 : 0x00000140 A5 : 0x00000078
A6 : 0x00000000 A7 : 0x00000000 A8 : 0xbef7bef7 A9 : 0x0000bef7
A10 : 0x00000000 A11 : 0x0000013f A12 : 0x00000015 A13 : 0x00000013
A14 : 0x00000004 A15 : 0x3ffc4d84 SAR : 0x0000001f EXCCAUSE: 0x0000001d
EXCVADDR: 0x00000000 LBEG : 0x4008a0bc LEND : 0x4008a0c7 LCOUNT : 0x00000000
Backtrace: 0x401bd001:0x3ffd7730 0x400f2d01:0x3ffd7750 0x400f296b:0x3ffd77d0 0x400f4ee1:0x3ffd7800 0x400f6269:0x3ffd78a0 0x401bcc51:0x3ffd7970 0x400d535c:0x3ffd7990 0x400d5ad6:0x3ffd7a40 0x401bc69e:0x3ffd7a70 0x400d31ff:0x3ffd7a90 0x400d33aa:0x3ffd7ab0 0x400da57d:0x3ffd7af0 0x400da649:0x3ffd7b40 0x400da9a2:0x3ffd7bc0 0x400daad3:0x3ffd7bf0 0x400db705:0x3ffd7cc0 0x400e7cd4:0x3ffd7d20 0x400d2a73:0x3ffd7d50 0x401258c5:0x3ffd7da0
ELF file SHA256: d0b02ab034037d0f
Rebooting...
ets Jul 29 2019 12:21:46
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13232
load:0x40080400,len:3028
entry 0x400805e4
[ 26][D][esp32-hal-cpu.c:244] setCpuFrequencyMhz(): PLL: 480 / 2 = 240 Mhz, APB: 80000000 Hz
[
`
Hello
I tried to get something visible on the ESP32-2432S022N.
This project does not mention this type, but in the lib it is implemented.
Its my first lvgl project, the problem might be on my side.
I get the following error
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:1184
load:0x40078000,len:13232
load:0x40080400,len:3028
entry 0x400805e4
E (526) spi_flash: Detected size(4096k) smaller than the size in the binary image header(8192k). Probe failed.
assert failed: do_core_init startup.c:328 (flash_ret == ESP_OK)
Backtrace: 0x40083a71:0x3ffe3ab0 0x4008d2a9:0x3ffe3ad0 0x40092911:0x3ffe3af0 0x40115242:0x3ffe3c20 0x40083185:0x3ffe3c50 0x40079306:0x3ffe3c90 |<-CORRUPTED
#0 0x40083a71:0x3ffe3ab0 in panic_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/panic.c:408
#1 0x4008d2a9:0x3ffe3ad0 in esp_system_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/esp_system.c:137
#2 0x40092911:0x3ffe3af0 in __assert_func at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/assert.c:85
#3 0x40115242:0x3ffe3c20 in do_core_init at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/startup.c:320
(inlined by) start_cpu0_default at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/startup.c:441
#4 0x40083185:0x3ffe3c50 in call_start_cpu0 at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/port/cpu_start.c:630
#5 0x40079306:0x3ffe3c90 in ?? ??:0
Any hint to get it working?
Thanks and greetings
Klaus
Good morning,
Im not really skilled on this things. Simply git clone following you instructions, then loaded on vcode+plastformio and then run the build option.
Im doing something wrong?
* Executing task: platformio run --environment esp32-8048S043C
Processing esp32-8048S043C (board: esp32-8048S043C; platform: espressif32; framework: arduino)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-8048S043C.html
PLATFORM: Espressif 32 (6.5.0) > esp32-8048S043C
HARDWARE: ESP32S3 240MHz, 320KB RAM, 16MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-builtin, 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.20014.231204 (2.0.14)
- tool-esptoolpy @ 1.40501.0 (4.5.1)
- toolchain-riscv32-esp @ 8.4.0+2021r2-patch5
- toolchain-xtensa-esp32s3 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 39 compatible libraries
Scanning dependencies...
Dependency Graph
|-- esp32_smartdisplay @ 2.0.8+sha.38956ed
|-- ESP32-audioI2S @ 2.0.0+sha.c95aafa
|-- lvgl @ 8.3.11
Building in release mode
Compiling .pio/build/esp32-8048S043C/src/main.cpp.o
Compiling .pio/build/esp32-8048S043C/src/ui/components/ui_comp_hook.c.o
Compiling .pio/build/esp32-8048S043C/src/ui/images/ui_img_lena80x80_png.c.o
Compiling .pio/build/esp32-8048S043C/src/ui/screens/ui_scrMain.c.o
Compiling .pio/build/esp32-8048S043C/src/ui/ui.c.o
src/ui/ui.c: In function 'ui_event_btnCount':
src/ui/ui.c:43:16: warning: unused variable 'target' [-Wunused-variable]
lv_obj_t * target = lv_event_get_target(e);
^~~~~~
Compiling .pio/build/esp32-8048S043C/src/ui/ui_helpers.c.o
Building .pio/build/esp32-8048S043C/bootloader.bin
Generating partitions .pio/build/esp32-8048S043C/partitions.bin
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/core/lv_disp.c.o
esptool.py v4.5.1
Creating esp32s3 image...
Merged 1 ELF section
Successfully created esp32s3 image.
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/core/lv_event.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/core/lv_group.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/core/lv_indev.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/core/lv_indev_scroll.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/core/lv_obj.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/core/lv_obj_class.c.o
src/main.cpp: In function 'void setup()':
src/main.cpp:49:10: warning: unused variable 'disp' [-Wunused-variable]
auto disp = lv_disp_get_default();
^~~~
src/main.cpp: In function 'void loop()':
src/main.cpp:72:30: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=]
sprintf(text_buffer, "%d", now);
^~~~ ~~~
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/core/lv_obj_draw.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/core/lv_obj_pos.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/core/lv_obj_scroll.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/core/lv_obj_style.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/core/lv_obj_style_gen.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/core/lv_obj_tree.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/core/lv_refr.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/core/lv_theme.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/arm2d/lv_gpu_arm2d.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/lv_draw.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/lv_draw_arc.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/lv_draw_img.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/lv_draw_label.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/lv_draw_layer.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/lv_draw_line.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/lv_draw_mask.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/lv_draw_rect.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/lv_draw_transform.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/lv_draw_triangle.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/lv_img_buf.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/lv_img_cache.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/lv_img_decoder.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/nxp/pxp/lv_draw_pxp.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/nxp/pxp/lv_draw_pxp_blend.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/nxp/pxp/lv_gpu_nxp_pxp.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/nxp/pxp/lv_gpu_nxp_pxp_osa.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/nxp/vglite/lv_draw_vglite.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/nxp/vglite/lv_draw_vglite_arc.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/nxp/vglite/lv_draw_vglite_blend.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/nxp/vglite/lv_draw_vglite_line.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/nxp/vglite/lv_draw_vglite_rect.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/nxp/vglite/lv_vglite_buf.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/nxp/vglite/lv_vglite_utils.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/renesas/lv_gpu_d2_draw_label.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/renesas/lv_gpu_d2_ra6m3.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sdl/lv_draw_sdl.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sdl/lv_draw_sdl_arc.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sdl/lv_draw_sdl_bg.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sdl/lv_draw_sdl_composite.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sdl/lv_draw_sdl_img.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sdl/lv_draw_sdl_label.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sdl/lv_draw_sdl_layer.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sdl/lv_draw_sdl_line.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sdl/lv_draw_sdl_mask.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sdl/lv_draw_sdl_polygon.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sdl/lv_draw_sdl_rect.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sdl/lv_draw_sdl_stack_blur.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sdl/lv_draw_sdl_texture_cache.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sdl/lv_draw_sdl_utils.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/stm32_dma2d/lv_gpu_stm32_dma2d.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sw/lv_draw_sw.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sw/lv_draw_sw_arc.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sw/lv_draw_sw_blend.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sw/lv_draw_sw_dither.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sw/lv_draw_sw_gradient.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sw/lv_draw_sw_img.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sw/lv_draw_sw_layer.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sw/lv_draw_sw_letter.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sw/lv_draw_sw_line.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sw/lv_draw_sw_polygon.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sw/lv_draw_sw_rect.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/sw/lv_draw_sw_transform.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/draw/swm341_dma2d/lv_gpu_swm341_dma2d.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/layouts/flex/lv_flex.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/layouts/grid/lv_grid.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/libs/bmp/lv_bmp.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/libs/ffmpeg/lv_ffmpeg.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/libs/freetype/lv_freetype.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/libs/fsdrv/lv_fs_fatfs.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/libs/fsdrv/lv_fs_littlefs.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/libs/fsdrv/lv_fs_posix.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/libs/fsdrv/lv_fs_stdio.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/libs/fsdrv/lv_fs_win32.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/libs/gif/gifdec.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/libs/gif/lv_gif.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/libs/png/lodepng.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/libs/png/lv_png.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/libs/qrcode/lv_qrcode.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/libs/qrcode/qrcodegen.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/libs/rlottie/lv_rlottie.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/libs/sjpg/lv_sjpg.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/libs/sjpg/tjpgd.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/libs/tiny_ttf/lv_tiny_ttf.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/lv_extra.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/others/fragment/lv_fragment.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/others/fragment/lv_fragment_manager.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/others/gridnav/lv_gridnav.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/others/ime/lv_ime_pinyin.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/others/imgfont/lv_imgfont.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/others/monkey/lv_monkey.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/others/msg/lv_msg.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/others/snapshot/lv_snapshot.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/themes/basic/lv_theme_basic.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/themes/default/lv_theme_default.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/themes/mono/lv_theme_mono.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/widgets/animimg/lv_animimg.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/widgets/calendar/lv_calendar.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/widgets/calendar/lv_calendar_header_arrow.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/widgets/calendar/lv_calendar_header_dropdown.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/widgets/chart/lv_chart.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/widgets/colorwheel/lv_colorwheel.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/widgets/imgbtn/lv_imgbtn.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/widgets/keyboard/lv_keyboard.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/widgets/led/lv_led.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/widgets/list/lv_list.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/widgets/menu/lv_menu.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/widgets/meter/lv_meter.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/widgets/msgbox/lv_msgbox.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/widgets/span/lv_span.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/widgets/spinbox/lv_spinbox.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/widgets/spinner/lv_spinner.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/widgets/tabview/lv_tabview.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/widgets/tileview/lv_tileview.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/extra/widgets/win/lv_win.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_dejavu_16_persian_hebrew.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_fmt_txt.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_loader.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_montserrat_10.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_montserrat_12.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_montserrat_12_subpx.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_montserrat_14.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_montserrat_16.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_montserrat_18.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_montserrat_20.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_montserrat_22.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_montserrat_24.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_montserrat_26.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_montserrat_28.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_montserrat_28_compressed.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_montserrat_30.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_montserrat_32.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_montserrat_34.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_montserrat_36.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_montserrat_38.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_montserrat_40.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_montserrat_42.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_montserrat_44.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_montserrat_46.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_montserrat_48.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_montserrat_8.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_simsun_16_cjk.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_unscii_16.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/font/lv_font_unscii_8.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/hal/lv_hal_disp.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/hal/lv_hal_indev.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/hal/lv_hal_tick.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/misc/lv_anim.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/misc/lv_anim_timeline.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/misc/lv_area.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/misc/lv_async.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/misc/lv_bidi.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/misc/lv_color.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/misc/lv_fs.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/misc/lv_gc.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/misc/lv_ll.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/misc/lv_log.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/misc/lv_lru.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/misc/lv_math.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/misc/lv_mem.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/misc/lv_printf.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/misc/lv_style.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/misc/lv_style_gen.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/misc/lv_templ.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/misc/lv_timer.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/misc/lv_tlsf.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/misc/lv_txt.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/misc/lv_txt_ap.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/misc/lv_utils.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/widgets/lv_arc.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/widgets/lv_bar.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/widgets/lv_btn.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/widgets/lv_btnmatrix.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/widgets/lv_canvas.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/widgets/lv_checkbox.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/widgets/lv_dropdown.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/widgets/lv_img.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/widgets/lv_label.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/widgets/lv_line.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/widgets/lv_objx_templ.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/widgets/lv_roller.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/widgets/lv_slider.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/widgets/lv_switch.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/widgets/lv_table.c.o
Compiling .pio/build/esp32-8048S043C/lib98f/lvgl/widgets/lv_textarea.c.o
Compiling .pio/build/esp32-8048S043C/liba41/esp_lcd_touch/esp_lcd_touch.c.o
Compiling .pio/build/esp32-8048S043C/lib1bc/esp_lcd_touch_xpt2046/esp_lcd_touch_xpt2046.c.o
In file included from .pio/libdeps/esp32-8048S043C/esp_lcd_touch/src/esp_lcd_touch.c:17:
.pio/libdeps/esp32-8048S043C/esp_lcd_touch/include/esp_lcd_touch.h:76:14: error: 'CONFIG_ESP_LCD_TOUCH_MAX_POINTS' undeclared here (not in a function); did you mean 'CONFIG_FMB_TCP_PORT_MAX_CONN'?
} coords[CONFIG_ESP_LCD_TOUCH_MAX_POINTS];
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CONFIG_FMB_TCP_PORT_MAX_CONN
*** [.pio/build/esp32-8048S043C/liba41/esp_lcd_touch/esp_lcd_touch.c.o] Error 1
========================================================================================================= [FAILED] Took 65.87 seconds =========================================================================================================
Environment Status Duration
--------------- -------- ------------
esp32-8048S043C FAILED 00:01:05.868
==================================================================================================== 1 failed, 0 succeeded in 00:01:05.868 ====================================================================================================
* The terminal process "platformio 'run', '--environment', 'esp32-8048S043C'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
First of all, thank you for making these wonderful repos available for people who want to learn how to use these cheap boards with PlatformIO!
I am new to all this stuff, so I started with this demo repo. I have an esp32-8048S043C, so I uncommented that line in platformio.ini and the program builds, uploads and runs, but touch does not work.
I found a closed issue with discussion about a similar problem someone had, and the recommendation was to switch to the development branch, so I tried switching to that and in the lower-left corner of PlatformIO, it does say "develop*" for the branch. I did a clean, build, and upload, but I get the same result. The program runs and the screen is being updated, but neither "Add 1", nor "Rotate" buttons do anything.
I know that the touch hardware is good because I made an image of the demo program it ships with and when I flash that image, the touch display works in the LVGL demo it runs. I can scroll and swipe between screens as expected.
As a newbie, I could very well be doing something wrong or missing some critical point. Please let me know if I missed something or if you need any additional information.
Thank you!
hi,
I'm completely new to the ESP32 ecosystem so apology if it's a dumb question.
I've cloned the demo repo as follows
git clone https://github.com/rzeldent/esp32-smartdisplay-demo.git --recurse-submodules
After which i went to the platformio.ini and uncommented the following:
default_envs = esp32-4848S040CIY1
I've uploaded the code to my device and looked at the serial console.
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x1 (POWERON),boot:0x18 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3808,len:0x44c
load:0x403c9700,len:0xbd8
load:0x403cc700,len:0x2a80
entry 0x403c98d0
E (126) esp_core_dump_flash: Incorrect size of core dump image: -16776961
[ 127][I][esp32-hal-psram.c:96] psramInit(): PSRAM enabled
[ 391][I][main.cpp:25] setup(): Board: esp32-4848S040CIY1
[ 392][I][main.cpp:26] setup(): CPU: ESP32-S3 rev0, CPU Freq: 240 Mhz, 2 core(s)
[ 393][I][main.cpp:27] setup(): Free heap: 314444 bytes
[ 398][I][main.cpp:28] setup(): Free PSRAM: 8386279 bytes
[ 403][I][main.cpp:29] setup(): SDK version: v4.4.6-dirty
[ 409][D][esp32_smartdisplay.c:209] smartdisplay_init(): smartdisplay_init
[ 416][D][lvgl_st7701_par.c:25] lvgl_lcd_init(): lvgl_lcd_init
[ 686][D][esp32_smartdisplay.c:109] smartdisplay_lcd_set_backlight(): smartdisplay_lcd_set_backlight. duty:0.500000
[ 686][D][lvgl_gt911_i2c.c:167] lvgl_touch_init(): lvgl_touch_init
[ 692][D][lvgl_gt911_i2c.c:179] lvgl_touch_init(): i2c_param_config. host: 0
[ 699][D][lvgl_gt911_i2c.c:181] lvgl_touch_init(): i2c_driver_install host: 0
[ 705][D][lvgl_gt911_i2c.c:197] lvgl_touch_init(): esp_lcd_new_panel_io_i2c. host: 0
[ 714][D][lvgl_gt911_i2c.c:201] lvgl_touch_init(): GT911 productId: 911
[ 720][D][lvgl_gt911_i2c.c:202] lvgl_touch_init(): GT911 fwId: 1060
[ 726][D][lvgl_gt911_i2c.c:203] lvgl_touch_init(): GT911 xResolution/yResolution: (480, 480)
[ 734][D][lvgl_gt911_i2c.c:204] lvgl_touch_init(): GT911 vendorId: 00
[ 741][D][lvgl_gt911_i2c.c:248] lvgl_touch_init(): esp_lcd_touch_new_i2c_gt911. host: 0
[ 748][D][esp32_smartdisplay.c:36] lvgl_update_callback(): lvgl_update_callback
[ 16599][D][lvgl_gt911_i2c.c:148] gt911_lvgl_touch_cb(): Pressed at: (260,194), strength: 1070513646
[ 16629][D][lvgl_gt911_i2c.c:148] gt911_lvgl_touch_cb(): Pressed at: (260,194), strength: 1070513646
[ 16659][D][lvgl_gt911_i2c.c:148] gt911_lvgl_touch_cb(): Pressed at: (260,194), strength: 1070513646
[ 16689][D][lvgl_gt911_i2c.c:148] gt911_lvgl_touch_cb(): Pressed at: (260,194), strength: 1070513646
[ 16719][D][lvgl_gt911_i2c.c:148] gt911_lvgl_touch_cb(): Pressed at: (260,194), strength: 1070513646
[ 16749][D][lvgl_gt911_i2c.c:148] gt911_lvgl_touch_cb(): Pressed at: (260,194), strength: 1070513646
[ 16779][D][lvgl_gt911_i2c.c:148] gt911_lvgl_touch_cb(): Pressed at: (260,194), strength: 1070513646
So the touchscreen looks to be working as i'm touching it. But the display is completely dark (No backlight), When i shine my flashlight on the screen i can see some faint shapes and text so i suspect the only issue is the backlight not turning on. Did i forget to change something?
Hi,
First off, thanks a lot for your work, I am starting with those Sunton boards and this is really helping.
I have setup a PIO/VSCode project to compile your demo code as a starting point for my project.
When compiling but I've got this error:
.pio\libdeps\esp32dev\esp32_smartdisplay\src\esp32_smartdisplay.cpp:139:38: error: 'tone' was not declared in this scope
I understand tone() is part of Arduino core library but looks like this is not part of the arduino declination in PIO.
Do you have an idea how to fix it?
Thanks!
Eric
Would you consider Adding Support for the ILI9341_2_DRIVER?
It has an Alternative Init Sequence.
I have a Newer Revision of [ESP32-2432S028R] with USB-C that Requires it. I Got it working with TFTP_eSPI but not with your Lib because the Init Code is way different.
[TFT_Drivers/ILI9341_Init.h#L127]https://github.com/Bodmer/TFT_eSPI/blob/fa6512faf40594fde13795074e26ef0379708f38/TFT_Drivers/ILI9341_Init.h#L127)
Hi,
Touch is not working for me. I'm using the 8048S070Cv13 (but same for my 8048S050R). I checked the touch controller and it is GT911. The factory image worked with touch so i know that the touchscreen is not broken.
I tried the example code and pushed the Button Add 1
, but it does nothing. I also made another squareline project with a button which gave the same result. Touch does work when testing the project in squareline though.
For reference I used default_envs = esp32-8048S070Cv13
in platformio.ini, but using esp32-8048S070Cv11 did not help either.
Did anyone experience the same? Or is there a solution?
Processing esp32-2432S028Rv2 (board: esp32-2432S028Rv2; platform: espressif32; framework: arduino)
--------------------------------------------------------------------------------------------------------------------------------Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-2432S028Rv2.html
PLATFORM: Espressif 32 (6.0.0) > esp32-2432S028Rv2
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) 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.20006.221224 (2.0.6)
- tool-esptoolpy @ 1.40400.0 (4.4.0)
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 36 compatible libraries
Scanning dependencies...
Dependency Graph
|-- esp32_smartdisplay @ 2.0.4+sha.5e0cba9
|-- ESP32-audioI2S @ 2.0.0+sha.e6ee006
|-- lvgl @ 8.3.9
Building in release mode
Compiling .pio\build\esp32-2432S028Rv2\libf15\esp32_smartdisplay\esp_lcd_panel_io_3wire_spi.c.o
Compiling .pio\build\esp32-2432S028Rv2\libf15\esp32_smartdisplay\lvgl_st7789.c.o
Compiling .pio\build\esp32-2432S028Rv2\libf15\esp32_smartdisplay\lvgl_st7796.c.o
Compiling .pio\build\esp32-2432S028Rv2\libf15\esp32_smartdisplay\lvgl_xpt2046.c.o
.pio/libdeps/esp32-2432S028Rv2/esp32_smartdisplay/src/esp_lcd_panel_io_3wire_spi.c:69:88: error: unknown type name 'esp_lcd_panel_io_callbacks_t'
static esp_err_t panel_io_register_event_callbacks(esp_lcd_panel_io_handle_t io, const esp_lcd_panel_io_callbacks_t *cbs, void
*user_ctx);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/esp32-2432S028Rv2/esp32_smartdisplay/src/esp_lcd_panel_io_3wire_spi.c: In function 'esp_lcd_new_panel_io_3wire_spi':
.pio/libdeps/esp32-2432S028Rv2/esp32_smartdisplay/src/esp_lcd_panel_io_3wire_spi.c:124:19: error: 'esp_lcd_panel_io_t' {aka 'struct esp_lcd_panel_io_t'} has no member named 'register_event_callbacks'
panel_io->base.register_event_callbacks = panel_io_register_event_callbacks;
^
.pio/libdeps/esp32-2432S028Rv2/esp32_smartdisplay/src/esp_lcd_panel_io_3wire_spi.c: At top level:
.pio/libdeps/esp32-2432S028Rv2/esp32_smartdisplay/src/esp_lcd_panel_io_3wire_spi.c:255:88: error: unknown type name 'esp_lcd_panel_io_callbacks_t'
static esp_err_t panel_io_register_event_callbacks(esp_lcd_panel_io_handle_t io, const esp_lcd_panel_io_callbacks_t *cbs, void
*user_ctx)
Hello, I m trying to make the demo working, but for the moment without success.
The code is running, I can see information on serial monitor, the led is flashing but nothing on display (it is just powered, with white screen)
I m using the defaut code with some changes on a 2432S028R Hardware.
[platformio]
default_envs = esp32dev
#default_envs = esp32-c3-devkitm-1
#default_envs = esp32-s3-devkitc-1-n16-psram
[env]
platform = espressif32
framework = arduino
monitor_speed = 115200
monitor_rts = 0
monitor_dtr = 0
monitor_filters = esp32_exception_decoder
# Partition scheme for OTA
board_build.partitions = min_spiffs.csv
build_flags =
-Ofast
-Wall
#-Wno-discarded-qualifiers
#-Wno-unused-variable
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_VERBOSE
# LVGL settings
-D LV_CONF_PATH=${PROJECT_INCLUDE_DIR}/lv_conf.h
# EspressIf library defines
-D ESP_LCD_ST7796_VER_MAJOR=1
-D ESP_LCD_ST7796_VER_MINOR=2
-D ESP_LCD_ST7796_VER_PATCH=0
-D ESP_LCD_ILI9341_VER_MAJOR=1
-D ESP_LCD_ILI9341_VER_MINOR=2
-D ESP_LCD_ILI9341_VER_PATCH=0
-D ESP_LCD_GC9A01_VER_MAJOR=1
-D ESP_LCD_GC9A01_VER_MINOR=2
-D ESP_LCD_GC9A01_VER_PATCH=0
-D CONFIG_ESP_LCD_TOUCH_MAX_POINTS=1
-D CONFIG_XPT2046_CONVERT_ADC_TO_COORDS
-D CONFIG_XPT2046_Z_THRESHOLD=600
#-D TFT_WIDTH=240
#-D TFT_HEIGHT=320
#-D PIN_BCKL=16
#lib_deps = rzeldent/esp32_smartdisplay
lib_deps =
https://github.com/rzeldent/esp32-smartdisplay.git#feature/esp32s3
https://github.com/schreibfaul1/ESP32-audioI2S
[env:esp32dev]
board = esp32dev
build_flags =
${env.build_flags}
# Smartdisplay selection
-D ESP32_2432S028R
lib_deps = ${env.lib_deps}
And BTW, I had so much warning during compilation
I can build it and the speaker plays music in English, but talks in Dutch :-)
All the pin settings look correct compared to a working espHome build
# Setup SPI for the display. The ESP32-2432S028R uses separate SPI buses for display and touch
spi:
- id: tft
clk_pin: GPIO14
mosi_pin: GPIO13
miso_pin: GPIO12
- id: touch
clk_pin: GPIO25
mosi_pin: GPIO32
miso_pin: GPIO39
# Setup a pin to control the backlight
output:
- platform: ledc
pin: GPIO21
id: backlight_pwm
# Setup the ili9xxx platform
#
# Display is used as 240x320 by default so we rotate it to 90°
display:
- platform: ili9xxx
model: ili9341
spi_id: tft
cs_pin: GPIO15
dc_pin: GPIO2
id: "my_display"
dimensions: 240X320
color_order: RGB
transform:
mirror_y: false
mirror_x: false
swap_xy: true
Your file snip
"-DARDUINO_ESP32_DEV",
"-DESP32_2432S028Rv2",
"-DLCD_WIDTH=240",
"-DLCD_HEIGHT=320",
"-DBCKL=21",
"-DLCD_USES_ILI9341",
"-DILI9341_SPI_HOST=SPI2_HOST",
"-DILI9341_SPI_MOSI=13",
"-DILI9341_SPI_MISO=12",
"-DILI9341_SPI_SCLK=14",
"-DILI9341_CS=15",
"-DILI9341_DC=2",
"'-D ILI9341_VENDOR_CONFIG=\"(ili9341_vendor_config_t[]){{.init_cmds=(ili9341_lcd_init_cmd_t[]){{.cmd=0xCF,.data=(uint8_t[]){0x00,0xC1,0x30},.data_bytes=3},{.cmd=0xED,.data=(uint8_t[]){0x64,0x03,0x12,0x81},.data_bytes=4},{.cmd=0xE8,.data=(uint8_t[]){0x85,0x00,0x78},.data_bytes=3},{.cmd=0xCB,.data=(uint8_t[]){0x39,0x2C,0x00,0x34,0x02},.data_bytes=5},{.cmd=0xF7,.data=(uint8_t[]){0x20},.data_bytes=1},{.cmd=0xEA,.data=(uint8_t[]){0x00,0x00},.data_bytes=2},{.cmd=0xC0,.data=(uint8_t[]){0x10},.data_bytes=1},{.cmd=0xC1,.data=(uint8_t[]){0x00},.data_bytes=1},{.cmd=0xC5,.data=(uint8_t[]){0x30,0x30},.data_bytes=2,},{.cmd=0xC7,.data=(uint8_t[]){0xB7},.data_bytes=1},{.cmd=0x3A,.data=(uint8_t[]){0x55},.data_bytes=1},{.cmd=0x36,.data=(uint8_t[]){0x08},.data_bytes=1},{.cmd=0xB1,.data=(uint8_t[]){0x00,0x1a},.data_bytes=2},{.cmd=0xB6,.data=(uint8_t[]){0x08,0x82,0x27},.data_bytes=3},{.cmd=0xF2,.data=(uint8_t[]){0x00},.data_bytes=1},{.cmd=0x26,.data=(uint8_t[]){0x01},.data_bytes=1},{.cmd=0xE0,.data=(uint8_t[]){0x0F,0x2A,0x28,0x08,0x0E,0x08,0x54,0xA9,0x43,0x0A,0x0F,0x00,0x00,0x00,0x00},.data_bytes=15},{.cmd=0xE1,.data=(uint8_t[]){0x00,0x15,0x17,0x07,0x11,0x06,0x2B,0x56,0x3C,0x05,0x10,0x0F,0x3F,0x3F,0x0F},.data_bytes=15},{.cmd=0x2B,.data=(uint8_t[]){0x00,0x00,0x01,0x3F},.data_bytes=4},{.cmd=0x2A,.data=(uint8_t[]){0x00,0x00,0x00,0xEF},.data_bytes=4},{.cmd=0x21},{.cmd=0x11,.delay_ms=120},{.cmd=0x29,.delay_ms=1}},.init_cmds_size=23}}\"'",
"-DLCD_SWAP_XY=false",
"-DLCD_MIRROR_X=true",
"-DLCD_MIRROR_Y=false",
First, thanks for the great effort to provide such a ready to use package, appreciated!
Getting error to compile this vanilla project, fails with undefined reference to
esp_lcd_panel_disp_on_off'`:
Submodule path 'boards': checked out '5b176b7752100521b82c58407d3483a5e2136173'
Library Manager: [email protected]+sha.bca1535 has been installed!
PACKAGES:
- framework-arduinoespressif32 @ 3.20006.221224 (2.0.6)
- tool-esptoolpy @ 1.40400.0 (4.4.0)
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Dependency Graph
|-- esp32_smartdisplay @ 2.0.2+sha.bca1535
|-- ESP32-audioI2S-master @ 2.0.0+sha.1acd2c1
|-- lvgl @ 8.3.9
Compiling .pio/build/esp32-3248S035C/lib998/esp32_smartdisplay/lvgl_xpt2046.c.o
In file included from /home/sam/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/hal/include/hal/cpu_hal.h:12,
from /home/sam/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_hw_support/include/esp_cpu.h:14,
from /home/sam/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_hw_support/include/soc/cpu.h:14,
from /home/sam/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_hw_support/include/soc/spinlock.h:11,
from /home/sam/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/port/xtensa/include/freertos/portmacro.h:42,
from /home/sam/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/freertos/portable.h:51,
from /home/sam/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/freertos/include/freertos/FreeRTOS.h:63,
from /home/sam/.platformio/packages/framework-arduinoespressif32/cores/esp32/Arduino.h:33,
from .pio/libdeps/esp32-3248S035C/esp32_smartdisplay/include/esp32_smartdisplay.h:4,
from .pio/libdeps/esp32-3248S035C/esp32_smartdisplay/src/lvgl_st7796.c:1:
.pio/libdeps/esp32-3248S035C/esp32_smartdisplay/src/lvgl_st7796.c: In function 'lvgl_lcd_init':
.pio/libdeps/esp32-3248S035C/esp32_smartdisplay/src/lvgl_st7796.c:60:21: warning: implicit declaration of function 'esp_lcd_panel_disp_on_off'; did you mean 'esp_lcd_panel_disp_off'? [-Wimplicit-function-declaration]
ESP_ERROR_CHECK(esp_lcd_panel_disp_on_off(panel_handle, true));
^~~~~~~~~~~~~~~~~~~~~~~~~
/home/sam/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32/include/esp_common/include/esp_err.h:116:30: note: in definition of macro 'ESP_ERROR_CHECK'
esp_err_t err_rc_ = (x); \
^
Linking .pio/build/esp32-3248S035C/firmware.elf
/home/sam/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/esp32-3248S035C/lib998/libesp32_smartdisplay.a(lvgl_st7796.c.o):(.literal.lvgl_lcd_init+0x2c): undefined reference to `esp_lcd_panel_disp_on_off'
/home/sam/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: .pio/build/esp32-3248S035C/lib998/libesp32_smartdisplay.a(lvgl_st7796.c.o): in function `lvgl_lcd_init':
/home/sam/src/private/esp32-smartdisplay-demo/.pio/libdeps/esp32-3248S035C/esp32_smartdisplay/src/lvgl_st7796.c:56: undefined reference to `esp_lcd_panel_disp_on_off'
collect2: error: ld returned 1 exit status
*** [.pio/build/esp32-3248S035C/firmware.elf] Error 1
Thank you for any advice!
Hi,
I don't know where to run the git command you provided:
git clone --recurse-submodules
I opened the project in platformio, but don't know where is the location to run the command.
I build the code and got this result:
* Executing task: C:\Users\eagle\.platformio\penv\Scripts\platformio.exe run --environment esp32-8048S043C
Processing esp32-8048S043C (board: esp32-8048S043C; platform: espressif32; framework: arduino)
--------------------------------------------------------------------------------------------UnknownBoard: Unknown board ID 'esp32-8048S043C'
* The terminal process "C:\Users\eagle\.platformio\penv\Scripts\platformio.exe 'run', '--environment', 'esp32-8048S043C'" terminated with exit code: 1.
* Terminal will be reused by tasks, press any key to close it.
So I've got a ESP32-8048S050C display board. I tried to load this project but all I see is white screen (backlight is working) but nothing shown (no GUI etc). Touchscreen works.
What's the issue? I suspect some library mismatch (dunno, required LVGL or something)
Thank you since now! @rzeldent
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.