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

lvgl 9.x and esp_lvgl_port with ST7796 8bit Parallel (BSP-480) #315

Closed
sukesh-ak opened this issue Mar 26, 2024 · 8 comments
Closed

lvgl 9.x and esp_lvgl_port with ST7796 8bit Parallel (BSP-480) #315

sukesh-ak opened this issue Mar 26, 2024 · 8 comments

Comments

@sukesh-ak
Copy link

I have built a sample using lvgl 9.x + esp_lvgl_port with ST7796 SPI and got it working.

Now I am trying to get ST7796 8bit Parallel working.
Could not find a suitable sample to borrow code. And the code snippet mentioned in README.md of esp_bsp is incomplete.

Device being tested on is WT32-SC01 Plus which is ESP32-S3.

Need help since the display is showing only colored dots for now. Sample is here on ST7796P branch.
https://github.com/sukesh-ak/IDF5-ESP_LCD-LVGL9/tree/ST7796P

@github-actions github-actions bot changed the title lvgl 9.x and esp_lvgl_port with ST7796 8bit Parallel lvgl 9.x and esp_lvgl_port with ST7796 8bit Parallel (BSP-480) Mar 26, 2024
@Lzw655
Copy link
Collaborator

Lzw655 commented Mar 27, 2024

Hi @sukesh-ak, I found some points that may lead to the issue:

  1. HMI_PIN_NUM_CS pin is set to -1.
  2. The LCD initialization code may be needed like below.
    image

@sukesh-ak
Copy link
Author

Hi @Lzw655

  1. HMI_PIN_NUM_CS pin is set to -1.

CS PIN is already -1 in the working samples.

Here I am trying to make it work using esp_lcd and esp_lvgl_port.
Screenshot talks about custom initialization commands. Not sure if they are required?

This was done using LovyanGFX drivers
https://github.com/sukesh-ak/ESP32-TUX/blob/master/main/devices/conf_WT32SCO1-Plus.h

@sukesh-ak
Copy link
Author

@espzav Can you take a look and help?
I don't want to switch back to LovyanGFX. I prefer to use esp_lvgl_port & esp-bsp going forward.

@espzav
Copy link
Collaborator

espzav commented Apr 2, 2024

Hi @sukesh-ak,
I apologize, I haven't got HW for this screen, but I see in upper comment, you should change vendor config. You can do it here: https://github.com/sukesh-ak/IDF5-ESP_LCD-LVGL9/blob/1532084ed91ca553b749b49b173dbdce1fffd4ad/main/main.c#L286 same as in comment #315 (comment).
It should work with esp_lvgl_port. I don't see the esp_bsp in your code.

@sukesh-ak
Copy link
Author

sukesh-ak commented Apr 2, 2024

Hi @sukesh-ak, I apologize, I haven't got HW for this screen, but I see in upper comment, you should change vendor config. You can do it here: https://github.com/sukesh-ak/IDF5-ESP_LCD-LVGL9/blob/1532084ed91ca553b749b49b173dbdce1fffd4ad/main/main.c#L286 same as in comment #315 (comment). It should work with esp_lvgl_port. I don't see the esp_bsp in your code.

I was looking at this example for reference since its for the same controller ST7796 Parallel.
https://github.com/espressif/esp-idf/blob/master/examples/peripherals/lcd/i80_controller/main/i80_controller_example_main.c

@sukesh-ak
Copy link
Author

@espzav / @Lzw655
Thank you for the help. I got it working without the vendor specific additions.

Also I have built it as a esp_bsp and now available here.
https://github.com/sukesh-ak/BSP-IDF5-ESP_LCD-LVGL9

Hope to add support for other popular display devices.

@espzav
Copy link
Collaborator

espzav commented Apr 4, 2024

@sukesh-ak Great! Could we close the issue now?

@sukesh-ak
Copy link
Author

@sukesh-ak Great! Could we close the issue now?

Yes closing now.

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

3 participants