ESP32S3 touch screen library

stwirth
Posts: 9
Joined: Tue Nov 23, 2021 11:11 am

ESP32S3 touch screen library

Postby stwirth » Mon Feb 14, 2022 11:53 am

Is there any library or example on how to use a 4-pin capacitive touch display on an ESP32S3?
I see examples in https://github.com/espressif/esp-idf/tr ... ch_element but they are labeled as ESP32S2 only. I managed to run the touch_matrix example (https://github.com/espressif/esp-idf/tr ... uch_matrix) on the ESP32S3 but it doesn't really serve my purpose as I only get 4 possible (binary) outputs.
I'd like to know the X/Y position that was touched.
I'm using the Adafruit 2.4" TFT LCD with Touchscreen Breakout w/MicroSD Socket - ILI9341 https://www.adafruit.com/product/2478.
I found https://github.com/dracir9/ESP_TouchScreen but that project compiles with Arduino, I need a version that runs within IDF.

Thanks,
Stephan

MikeLemon
Posts: 45
Joined: Tue Feb 02, 2021 5:55 pm

Re: ESP32S3 touch screen library

Postby MikeLemon » Tue Feb 22, 2022 7:38 am

Depends of the display you want to use there are libraries for most common displays even in ESP IDF here's a tutorial for using one of the displays you mentioned with ESP IDF: https://www.hackster.io/nash-ali/using- ... uch-a04e77

But I'd generally use U8G2 for display graphics control because It's covering most if not all display funcs I need for each display and as for the touch aspect I'll usually go on a separate "touch IC" do I'll either find a library for that IC or make one my self for the touch feedback.

Who is online

Users browsing this forum: Google [Bot] and 168 guests