deprecated function how to solve it

pdecaro
Posts: 3
Joined: Tue Feb 10, 2026 5:54 am

deprecated function how to solve it

Postby pdecaro » Fri Apr 10, 2026 8:04 pm

Good evening, I'm having this problem. When I recompile a program that was working perfectly, I get this error for a deprecated function called "esp_lcd_touch_get_coordinates." It tells me to replace it with "esp_lcd_touch_get_data-Instead." I replace the name of this new function in the program, but I still get the error.
Can you please help me solve this problem?
Thank you.



Image
Attachments
elecrow.png
elecrow.png (47.47 KiB) Viewed 109 times

MicroController
Posts: 2661
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: deprecated function how to solve it

Postby MicroController » Mon Apr 13, 2026 8:27 am

I replace the name of this new function in the program, but ...
The new function has a different signature than the old one, i.e. it must be called with different arguments. Documentation seems to still be sparse, but here's an example:

Code: Select all

esp_lcd_touch_point_data_t touch_point_data[1];
uint8_t touch_cnt = 0;

ESP_ERROR_CHECK(esp_lcd_touch_get_data(tp, touch_point_data, &touch_cnt, 1));

User avatar
mbratch
Posts: 317
Joined: Fri Jun 11, 2021 1:51 pm

Re: deprecated function how to solve it

Postby mbratch » Tue Apr 14, 2026 11:21 pm

Were you actually getting an error message for the deprecated function or was it a warning message? Usually when a function becomes deprecated, you're given a considerable amount of time to adapt the replacement function(s).

nopnop2002
Posts: 347
Joined: Thu Oct 03, 2019 10:52 pm
Contact:

Re: deprecated function how to solve it

Postby nopnop2002 » Tue Apr 28, 2026 11:59 am

In ESP-IDF V6, the following options may help avoid deprecation-related errors.
This allowed us to temporarily circumvent the deprecation error related to the legacy TWAI driver.
However, it is not guaranteed that all errors can be avoided.
583825747-fd46966b-6a9f-4034-a9e3-b13a75c02bc8.jpg
583825747-fd46966b-6a9f-4034-a9e3-b13a75c02bc8.jpg (159.88 KiB) Viewed 46 times

Who is online

Users browsing this forum: Applebot, Google [Bot], PetalBot, Qwantbot and 15 guests