Replies: 3 comments
-
The library does not support interrupts. Options:
|
Beta Was this translation helpful? Give feedback.
-
I just did option 1. Hooked the hardware interrupt on the display to pull down a digital input pin on the microcontroller, programmed the microcontroller to trigger the Interrupt Service Routine (ISR) when it saw a falling edge. The ISR just set a semaphore and returned. (You want to keep ISRs as short as possible.)
The Semaphore in the for(;;) loop says (wit for this semaphore to be available and when it is run the stuff in my conditional block. If 200 milliseconds pass and nothing has triggered me, run the stuff in the "else" block (reset watchdog timers and such). |
Beta Was this translation helpful? Give feedback.
-
Lebo77, Thanks for the assistance.
|
Beta Was this translation helpful? Give feedback.
-
Hello,
I've been using this library for some time now, to develop an application whilst using an esp32-D0WD.
And it works with an MHS4.0-rev.B 320x480 display (ST7796), with an xpt2046 touch controller.
With vscode, platformio, the espressif32 platform, and arduino framework(), I managed to put some pictures on the screen.
However I would like to see an interrupt driven routine that handles touch input.
(Because I'm sleeping al the time.)
This particular screen has an #TP_INT signal on (its) pin 11.
How can I write a procedure to get the "real" values of the "tft.touchvalues" using the tft.gettouch() function?
Without having to implement it myself?
Beta Was this translation helpful? Give feedback.
All reactions