Git Product home page Git Product logo

Comments (8)

Lzw655 avatar Lzw655 commented on September 3, 2024

@VigneshAkshaya Please attach your new code which porting to v8.x.

from esp-dev-kits.

VigneshAkshaya avatar VigneshAkshaya commented on September 3, 2024

Please find the attachment
SampleProgramLVGL8.2.zip

from esp-dev-kits.

Lzw655 avatar Lzw655 commented on September 3, 2024

@VigneshAkshaya I have reviewed your project, and I found there're some uncorrect configurations. You can modify them as follow:

  • SampleProgramLVGL8.2/components/lvgl/lv_conf.h:
    • Set LV_MEM_CUSTOM to 1
    • Set LV_MEMCPY_MEMSET_STD to 1
      Screenshot from 2022-10-08 15-39-42
  • SampleProgramLVGL8.2/components/lvgl/lv_port/lvgl_port.c:
    • Modify disp_drv.hor_res and disp_drv.hor_res
      Screenshot from 2022-10-08 15-40-08
    • Modify parameters of bsp_lcd_flush
      Screenshot from 2022-10-08 15-40-22

from esp-dev-kits.

VigneshAkshaya avatar VigneshAkshaya commented on September 3, 2024

@Lzw655
I have tried with the above configurations and it is working fine for labels, but I dont know why it is not working for other widgets.

• Button was created and added to the existing “Hello World “ text – Only “Button” text label is getting displayed.
• Event was assigned to the button to follow up the button event – It’s not clickable and given event also hasn’t happened.
• And , widgets such as bar , slider , switch were also tested and only text is getting displayed for all .

Changes I have made,
main\hello_world_main.c -> btn1 is created and its corresponding event handler .
image

Hardware Observation as below

123

from esp-dev-kits.

Lzw655 avatar Lzw655 commented on September 3, 2024

@VigneshAkshaya I checked the file "components\lvgl\lv_conf.h" in your project again, and I found the configuration "LV_USE_THEME_DEFAULT" is set to 0 which should be 1. This caused LVGL's widgets to have no default appearance.

from esp-dev-kits.

Lzw655 avatar Lzw655 commented on September 3, 2024

@VigneshAkshaya Is your problem solved? If so, please close this issue.

from esp-dev-kits.

VigneshAkshaya avatar VigneshAkshaya commented on September 3, 2024

Hey @Lzw655 , sorry for the delay, I was unavailable for whole past 2 weeks.

• “LV_USE_THEME_DEFAULT” was set it to 1.Dsiplay is changed and there was no response on clicking the button
• I2C Bus and LCD Touch Init are also happening properly . Verified through ESP ERROR CHECK and print statements for all the init functions.
• LV_EVENT_CLICKED given to the event handler is not working whereas other default events are happening – verified by printing event codes.

image

from esp-dev-kits.

Lzw655 avatar Lzw655 commented on September 3, 2024

Sorry for not responding to your question in a timely manner!
Since this problem has lost its time, I will close it after a week. If you still need to solve this problem, please leave a comment or open a new issue, thank you!

from esp-dev-kits.

Related Issues (20)

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.