Giter VIP home page Giter VIP logo

sunton_esp32-8048s070c_esp_idf_lvgl_example's Introduction

Sunton_ESP32-8048S070c_ESP_IDF_LVGL_example

An example to show how to use LCD display and touch with LVGL on ESP-IDF framework for Sunton ESP32-8048S070c devboard.

Features

The example supports only LCD and touch of the board. More features may be added in the future.

How to run the example

ESP-IDF is the framework for building the example. Only ESP-IDF v5.1 was tested. Using ESP-IDF as Visual Studio Code extension is recommended. When it is installed, please open folder containing this repository in Visual Studio Code and press "ESP-IDF Build, Flash and Monitor" button. It should build and run the example.

sunton_esp32-8048s070c_esp_idf_lvgl_example's People

Contributors

mmlodzinski avatar

Stargazers

 avatar  avatar Bruno Medici avatar Cellie avatar  avatar DaQuiTree avatar Patryk W. avatar  avatar  avatar Henry Zheng avatar Shaun Hey avatar Sukesh Ashok Kumar avatar  avatar John Gentilin avatar Filipe Veloso avatar  avatar ArchieWu avatar  avatar  avatar Alexander Zaytsev avatar Lihong Hao avatar Marcos Scheeren avatar Dave Van Wagner avatar Adrien Chapelet avatar not_loki avatar Terra avatar BlynkGO avatar robotanical avatar tobozo avatar

Watchers

 avatar  avatar  avatar

sunton_esp32-8048s070c_esp_idf_lvgl_example's Issues

Screen shift when using write access to local FS (LittleFS/Fat Fs)

Hello I am also working on this screen and found your repo
I know you are not using any FS yet, but I though it worth asking you ^_^

I have found that doing write access using littleFS/FatFs on local FS make the screen to shift: luc-github/ESP3D-TFT#18
I am wondering if you would have an idea of the root cause?
Using SPIFFS or SD card seems not having same issue per my tests.

Additionnaly I have tested arduino configuration code, that use gfx driver (https://github.com/wegi1/ESP32-8048S070-7INCH-LCD/blob/main/1-Demo/Demo_Arduino/3_3-4_TFT-LVGL-Widgets/LvglWidgets/LvglWidgets.ino) adding a code of littleFs writing file and same issue happen, with one difference: once writing is done, the messy screen is auto recovering. at least would be great to have same solution in idf code but could not find what did it orz...

Just sharing with you, in case you have any idea please let me know

no mem for frame buffer

hi.....i got the following error on my terminal after successfully building and flashing the code can you please assist me regarding the same?

I (258) cpu_start: Max chip rev: v0.99
I (263) cpu_start: Chip rev: v0.1
I (268) heap_init: Initializing. RAM available for dynamic allocation:
I (275) heap_init: At 3FC9F2E8 len 0004A428 (297 KiB): DRAM
I (281) heap_init: At 3FCE9710 len 00005724 (21 KiB): STACK/DRAM
I (288) heap_init: At 3FCF0000 len 00008000 (32 KiB): DRAM
I (294) heap_init: At 600FE010 len 00001FD8 (7 KiB): RTCRAM
I (301) spi_flash: detected chip: generic
I (305) spi_flash: flash io: dio
W (309) spi_flash: Detected size(8192k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
I (322) sleep: Configure to isolate all GPIO pins in sleep state
I (329) sleep: Enable automatic switching of GPIO sleep configuration
I (336) app_start: Starting scheduler on CPU0
I (341) app_start: Starting scheduler on CPU1
I (341) main_task: Started on CPU0
I (351) main_task: Calling app_main()
I (351) Sunton_ESP32-8048S070c_example: Create semaphores
I (361) Sunton_ESP32-8048S070c_example: Turn off LCD backlight
I (371) gpio: GPIO[2]| InputEn: 0| OutputEn: 1| OpenDrain: 0| Pullup: 0| Pulldown: 0| Intr:0
I (381) Sunton_ESP32-8048S070c_example: Install RGB LCD panel driver
E (381) lcd_panel.rgb: lcd_rgb_panel_alloc_frame_buffers(156): no mem for frame buffer
E (391) lcd_panel.rgb: esp_lcd_new_rgb_panel(285): alloc frame buffers failed
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.

Core 0 register dump:
PC : 0x4200c029 PS : 0x00060e30 A0 : 0x8200c632 A1 : 0x3fca2c80
A2 : 0x3fca421c A3 : 0x3c057ad0 A4 : 0x3c058000 A5 : 0x00000187
A6 : 0x3c057ad0 A7 : 0x3c05821c A8 : 0x00000000 A9 : 0x3fca2c20
A10 : 0x4203ffa0 A11 : 0x3c057ad0 A12 : 0x3c058000 A13 : 0x3fca2c80
A14 : 0x3fca2c60 A15 : 0x0000000c SAR : 0x00000004 EXCCAUSE: 0x0000001c
EXCVADDR: 0x00000000 LBEG : 0x400556d5 LEND : 0x400556e5 LCOUNT : 0xfffffffa

Backtrace: 0x4200c026:0x3fca2c80 0x4200c62f:0x3fca2ca0 0x420092f8:0x3fca2ce0 0x42049613:0x3fca2e40 0x4037db71:0x3fca2e70

ELF file SHA256: 1e9d95f3e2147921

Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x3 (RTC_SW_SYS_RST),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x403757c8
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce3818,len:0x1750
load:0x403c9700,len:0x4
load:0x403c9704,len:0xc00
load:0x403cc700,len:0x2e04
entry 0x403c9908

Project cmake configuration

How do I build all squareline studio exported files using the generated CmakeLists.txt(it adds a library with all source files)? This way, I don't have to edit main/CmakeLists.txt every time I add a screen or something like that.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.