MPaper: How to read touch (or fingerUp) just one time.
-
I am programming my M5Paper with the Arduino IDE 2.2.1. I have tried everything I can think of to get just a single pair of x,y cordinates from a single touch on the M5Paper. I have tried comparing new coordinates with old and so on, but I haven't been able get just a single pair of coordinates and then wait for the net touch. Could someone show me how to achieve this?
-
-
Well, yes it does. But why does the readFinger() have to be reaad three times?
for(int i=0;i<2; i++){
tp_finger_t FingerItem = M5.TP.readFinger(i); -
Hello @Steve1
actually it is only read twice (once for i = 0 and a second time for i = 1). The reason is that the touch screen can handle more than one touch point at the same time.
Thanks
Felix -
Thanks for your patience ;-)
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login