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

GT911 uses interrupt mode, and most single touches on LVGL are equivalent to two touches. (BSP-523) #351

Closed
1 task done
Zmmfly opened this issue Jul 22, 2024 · 1 comment · Fixed by #355
Closed
1 task done
Labels
Area: LVGL related to LVGL and LVGL port Type: Bug Something isn't working

Comments

@Zmmfly
Copy link

Zmmfly commented Jul 22, 2024

Board

Custom board

Hardware Description

RGB Display with GT911 touch

IDE Name

VSCode

Operating System

Windows 11

Description

LVGL version: 9.1.0
IDF version: 5.3-rc1

GT911 uses interrupt mode, expecting a single touch to be effective once; it is actually equivalent to two touches;

It can be determined that it is not a problem with LVGL, related link: https://forum.lvgl.io/t/i-clicked-the-screen-once-but-it-had-the-effect-of-clicking-twice/10848

The problem still exists when the touch point of the touch component is changed to 1 in idf.py menuconfig

Sketch

like example, only change rst and int pins

    esp_lcd_panel_io_i2c_config_t io_config = ESP_LCD_TOUCH_IO_I2C_GT911_CONFIG();

    esp_lcd_touch_io_gt911_config_t tp_gt911_config = {
        .dev_addr = io_config.dev_addr,
    };

    esp_lcd_touch_config_t tp_cfg = {
        .x_max = CONFIG_LCD_HRES,
        .y_max = CONFIG_LCD_VRES,
        .rst_gpio_num = TOUCH_RST_PIN,
        .int_gpio_num = TOUCH_INT_PIN,
        .levels = {
            .reset = 0,
            .interrupt = 0,
        },
        .flags = {
            .swap_xy = 0,
            .mirror_x = 0,
            .mirror_y = 0,
        },
        .driver_data = &tp_gt911_config,
    };

    esp_lcd_touch_handle_t tp;
    esp_lcd_touch_new_i2c_gt911(io_handle, &tp_cfg, &tp);

Other Steps to Reproduce

No response

I have checked existing issues, README.md and ESP32 Forum

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@Zmmfly Zmmfly added Status: Awaiting triage Type: Bug Something isn't working labels Jul 22, 2024
@github-actions github-actions bot changed the title GT911 uses interrupt mode, and most single touches on LVGL are equivalent to two touches. GT911 uses interrupt mode, and most single touches on LVGL are equivalent to two touches. (BSP-523) Jul 22, 2024
@espzav espzav mentioned this issue Jul 26, 2024
2 tasks
@espzav espzav added Area: LVGL related to LVGL and LVGL port and removed Status: Awaiting triage labels Jul 26, 2024
@espzav
Copy link
Collaborator

espzav commented Jul 26, 2024

Hi @Zmmfly, thank you for reporting this issue. We are solving it. It should be solved in this PR: #355

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: LVGL related to LVGL and LVGL port Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants