-
Couldn't load subscription status.
- Fork 46
Closed
Description
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
Labels
No labels