Hio,
I’ve been using the Lilygo T5 4.1 ESP32 v3 e-paper screen for some time now with the touchscreen. Been really successful in making touch panels for around the house to control various aspects of HA.
Trouble is, it seems the T5 4.7 v3 screens are out of stock everywhere. I’ve tried several stores on Aliexpress who “claim” to be selling the T5 4.7 ESP32 v3 screens, but when they ship, it turns out it’s the newer T5 4.7 ESP32-s3 v2.3 model.
For the screen itself, this isn’t a problem as I’m using Nickaly’s code from here GitHub - nickolay/esphome-lilygo-t547plus: Use Lilygo T5-4.7 inch ESP32-S3 (aka "plus"/V2.3) e-paper module with ESPHome
The problem arises when trying to use the Touchscreen component.
The config for the touchscreen allows you to select the interrupt pin, e.g. GPIO13 which is the correct pin for the T5 4.7 ESP32 vs board. On the newer T5 4.7 ESP32-S3, the interrupt pin is GPIO09.
Looking at the docs for the touchscreen component it states :
interrupt_pin (Optional , Pin Schema): The touch detection pin. Must be
GPIO13
Does it seem a little odd that the (optional) interrupt pin setting MUST be GPIO13?
If I set the interrupt in the yaml to be GPIO09, unsurprisingly absolutely nothing happens, nothing in the logs, nada.
I’ve tried (with my very limited skills) to hack a custom component for the touchscreen based off of this post Add support for Lilygo T5-4.7 inch e-paper module · Issue #1109 · esphome/feature-requests · GitHub
Not using an interrupt per se, it dos work slightly, as in I can get a touch to change the displayed page, but it changes the page repeatedly in quick succession, so not really a workable solution for a menu based system.
Looking at lilygo_t5_47_touchscreen.h and lilygo_t5_47_touchscreen.cpp I can’t figure out how the interrupt is set, let alone figure out how to change it.
Question is, is it possible to change the interrupt pin specified within the touchscreen component?