Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESP32-S2-HMI-DevKit-1 with LVGL version 8.x => Not working (IDF-Version 4.3) (IDFGH-8413) #58

Closed
3 tasks done
VigneshAkshaya opened this issue Sep 29, 2022 · 8 comments
Closed
3 tasks done

Comments

@VigneshAkshaya
Copy link

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

I have tried HMI development on ESP32-S2-HMI-DevKit-1 with LVGL version 7.11, working successfully.
with LVGL 7 11

But it is not working with the same code porting to LVGL version to 8.x
with LVGL 8 x

please find attachment for reference,

Any Support ?????

@github-actions github-actions bot changed the title ESP32-S2-HMI-DevKit-1 with LVGL version 8.x => Not working (IDF-Version 4.3) ESP32-S2-HMI-DevKit-1 with LVGL version 8.x => Not working (IDF-Version 4.3) (IDFGH-8413) Sep 29, 2022
@wujiangang wujiangang transferred this issue from espressif/esp-idf Sep 29, 2022
@Lzw655
Copy link
Collaborator

Lzw655 commented Sep 29, 2022

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

@VigneshAkshaya
Copy link
Author

Please find the attachment
SampleProgramLVGL8.2.zip

@Lzw655
Copy link
Collaborator

Lzw655 commented Oct 8, 2022

@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

@VigneshAkshaya
Copy link
Author

@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

@Lzw655
Copy link
Collaborator

Lzw655 commented Oct 14, 2022

@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.

@Lzw655
Copy link
Collaborator

Lzw655 commented Oct 24, 2022

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

@VigneshAkshaya
Copy link
Author

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

@Lzw655
Copy link
Collaborator

Lzw655 commented May 12, 2023

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!

@Lzw655 Lzw655 closed this as completed May 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants