Skip to content

ST1633 reset issue #242

@skyluke86

Description

@skyluke86

In the excution of

esp_lcd_touch_new_i2c_st1633

there is a reset that is too short and it isn't able to read fw version from touch panel.
I tested it raising last vTaskDelay to 50 ms and now it works.

static esp_err_t reset(esp_lcd_touch_handle_t tp)
{
    if (tp->config.rst_gpio_num != GPIO_NUM_NC) {
        vTaskDelay(pdMS_TO_TICKS(10));
        ESP_RETURN_ON_ERROR(gpio_set_level(tp->config.rst_gpio_num, tp->config.levels.reset), TAG, "GPIO set level failed");
        vTaskDelay(pdMS_TO_TICKS(10));
        ESP_RETURN_ON_ERROR(gpio_set_level(tp->config.rst_gpio_num, !tp->config.levels.reset), TAG, "GPIO set level failed");
        vTaskDelay(pdMS_TO_TICKS(50));
    }

    return ESP_OK;
}

After fix from esp logger:

I (989) ST1633: Firmware version: 1(48.3.49.5), Max.X: 240, Max.Y: 320

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions