Skip to content

Guition JC8012P4A1 #201

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

Open
christophe195 opened this issue May 21, 2025 · 9 comments
Open

Guition JC8012P4A1 #201

christophe195 opened this issue May 21, 2025 · 9 comments

Comments

@christophe195
Copy link

christophe195 commented May 21, 2025

Hey,

I bought https://nl.aliexpress.com/item/1005008789890066.html screen, a 10.1-inch ESP32P4. I was already running an lvgl project on a previous screen but wanted to go a little bigger and move away from a fragile developer board, this seemed ideal.

Now my project is in landscape and the board refuses with the vendor supplied code to work deftly in landscape. After multiple messages they informed me that their driver does not support rotation for Arduino. So I give this library a try, starting with the rotation example.

I noticed that my board is not among the standard boards. I tried to set up my own board via custom board but it hangs. I must admit I am a bit overwhelmed by all the settings.

What should I set to get rid of this message?

17:34:04.166 -> [I][LvPort][esp_panel_board.cpp:0066](init): Initializing board (Custom:Custom) 17:34:04.166 -> [I][LvPort][esp_panel_board.cpp:0235](init): Board initialize success 17:34:04.166 -> [I][LvPort][esp_panel_board.cpp:0253](begin): Beginning board (Custom:Custom) 17:34:04.166 -> [I][Panel][esp_lcd_jd9365.c:0069](esp_lcd_new_panel_jd9365): version: 1.0.1 17:34:04.331 -> [I][Panel][esp_lcd_jd9365.c:0430](panel_jd9365_init): LCD ID: 93 65 04 17:34:04.462 -> [I][LvPort][esp_panel_board.cpp:0463](begin): Board begin success 17:34:04.462 -> [I][LvPort][lvgl_v8_port.cpp:0761](lvgl_port_init): Initializing LVGL display driver

the custome config: https://pastebin.com/cM0AuTLi

@Lzw655
Copy link
Collaborator

Lzw655 commented May 22, 2025

Hi @christophe195,

You can refer to the steps here and set ESP_UTILS_CONF_LOG_LEVEL to ESP_UTILS_LOG_LEVEL_WARNING via esp_utils_conf.h to get rid of this part of the Log information.

@Lzw655
Copy link
Collaborator

Lzw655 commented May 22, 2025

BTW, simple_rotation currently does not support rotating the MIPI LCD. Moreover, there is currently no example to implement the dynamic rotation of the MIPI LCD (i.e., controlling arbitrary rotation during runtime). If you can accept static rotation (i.e., rotating only once during power-on), please use the example simple_port and set LVGL_PORT_AVOID_TEARING_MODE in lvgl_v8_port.h to 3, and finally set LVGL_PORT_ROTATION_DEGREE to adjust the rotation angle.

@christophe195
Copy link
Author

christophe195 commented May 22, 2025

@Lzw655

Thanks for your information, the problem is that the screen keeps black. Do i need to set pins somewhere?

Good to know that simple_rotation not works, i only need to change the screen 1 time so te lvgl_port_rotation_degree needs to be good for me.

@Lzw655
Copy link
Collaborator

Lzw655 commented May 23, 2025

@christophe195

You can first check if the screen backlight is turned on. If not, you need to check if the relevant pins are normal. If it is turned on but there is no display, please refer to the above answer to set ESP_UTILS_CONF_LOG_LEVEL to ESP_UTILS_LOG_LEVEL_DEBUG, and then send me the complete LOG information. I can help you analyze the problem.

@christophe195
Copy link
Author

christophe195 commented May 23, 2025

@Lzw655

Thanks for the backlight check, it was off. After changing the io it is on now but the screen is black (with backlight on now)

this is my console: https://pastebin.com/FzqcKKeU

@christophe195
Copy link
Author

christophe195 commented May 24, 2025

i did found some settings in the orignal demo files (that i can not rotate)

now i have a white screen with black lines on it and 2 purple lines with flicker, i think the purple is from the demo file i try to open "lv_demo_widgets()". I need to say that one spot on the screen gets hot (not burning).

New console lines: https://pastebin.com/uy1xqAP4

settings i found: https://pastebin.com/8QHu5FAZ

@Lzw655
Copy link
Collaborator

Lzw655 commented May 26, 2025

@christophe195

It seems that you haven't configured ESP_PANEL_BOARD_LCD_VENDOR_INIT_CMD. Please modify the data here according to the initialization parameters provided by the LCD manufacturer:

#define ESP_PANEL_BOARD_LCD_VENDOR_INIT_CMD() \
{ \
{0xFF, (uint8_t []){0x77, 0x01, 0x00, 0x00, 0x10}, 5, 0}, \
{0xC0, (uint8_t []){0x3B, 0x00}, 2, 0}, \
{0xC1, (uint8_t []){0x0D, 0x02}, 2, 0}, \
{0x29, (uint8_t []){0x00}, 0, 120}, \
or
ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(0, 0xFF, {0x77, 0x01, 0x00, 0x00, 0x10}), \
ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(0, 0xC0, {0x3B, 0x00}), \
ESP_PANEL_LCD_CMD_WITH_8BIT_PARAM(0, 0xC1, {0x0D, 0x02}), \
ESP_PANEL_LCD_CMD_WITH_NONE_PARAM(120, 0x29), \
}
*/

@christophe195
Copy link
Author

@Lzw655

Wow, i have picture now. Thanks. Now only the touch. I have a GSL3680, but ther is no GSL3680 in the list with touch drivers. Can i add them like the custom screen?

@Lzw655
Copy link
Collaborator

Lzw655 commented May 28, 2025

Great. For GSL3680, we don't have its driver yet. Moreover, the touch can't use a universal driver like the LCD. It needs to use its own communication protocol to parse the data. If you can provide me with a copy of its data manual and a driver example, I can help you configure its driver when I have time.

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