Touch pattern recognition #2012
Unanswered
sfxsfl
asked this question in
Q&A - Touch
Replies: 1 comment 2 replies
-
The TFT_eWidget may fit your needs and is available via the Arduino IDE library manager. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi and good evening,
first of all I would like to thank you for this great masterpiece. I've started with TFT_eSPI already a while ago on ILI9341 with
ESP8266 and it works out of the box with TFT_SPI_OVERLAP.
I would like to extend my Touch screen pattern recognition in such way to recognize different states like, Button pressed (not longer than 1sec), Button long pressed (longer than 2sec) and maybe some sliding across the screen, e.g. left to right and right to left.
In my application I have buttons and sliders. The challenge for me is to handle the different behavior of the screen elements.
A slider needs to recognize slight changes on the screen (cursor movements) and not just the pressed and unpressed state.
I'm struggling recognizing the patterns in the loop() with getTouch(&xPos, &yPos). Currently, I'm sampling the data
with roughly 50ms. This seems to work for the slider.
Any hint or idea is highly appreciated.
Thanks in advance
Stefan
Beta Was this translation helpful? Give feedback.
All reactions