Start a new topic

Press 3 buttons in the same time

I would like to know if it is possible to press 2 or 3 buttons in the same time (or almost) and have something done, like change the screen,or print a number in a text box in other screen, or the most important for me is to write a command to UART (write a hex string will be the best).

I am replacing an LCD screen with 6 mechanical buttons attached as input to CPU.

There i have the choice to press 3 buttons and issue a command to reset the CPU.

As i do not have the mechanical buttons anymore (they are on Nextion screen) i want to achieve the same feature.

Thank you

Everything is still processed as sequential

    as there is never a REAL instant simultaneous touch.

Capacitive Nextion 7.0" is capable of 5 Multi-touch.

... I'll nag less about "informative packets" sent by Nextion

but for those reading afterwards

 --- ahhhhh, just easier not reinventing the wheel, perhaps, maybe

We're big boys, so best wishes in your coding direction

 - more important to have fun with Nextions

    (which is why I keep pointing to framework ... lol)

Okay, I'm finished nagging (for this post at least)


Thank you Patrick.
Can you point to an example to see.
Let's assume i press a button, and it send what ever code i want, then while keeping the finger on the first button i press another one.
Does Nextion react to the second press?
It is like you said, sequential pressing, like Control + Alt + Delete.
After the third finger register will do something ?
How Nextion react to the second finger ? Send the code of just it or the code combined for both.
Like i said, a short pointer to an example will make my life easier.
And i know, "always use GET".
I do.


Although it is still a work in progress

 - Space Invaders uses the Multi-touch Capacitive

 - Etcher-Sketcher is also Multi-touch


I can also provide video showing Multi-touch (attached PsychicA.mp4)

Now for the MCU side you want to catch Nextion's 0x65 informative packets

  - Up to 5 touch events need to be managed MCU side


  0x65 0x00 0x01 0x01 0xFF 0xFF 0xFF PID-0 CID-1 Pressed    [1----]
  0x65 0x00 0x02 0x01 0xFF 0xFF 0xFF PID-0 CID-2 Pressed    [12---]
  0x65 0x00 0x03 0x01 0xFF 0xFF 0xFF PID-0 CID-3 Pressed    [123--]
  0x65 0x00 0x04 0x01 0xFF 0xFF 0xFF PID-0 CID-4 Pressed    [1234-]
  0x65 0x00 0x03 0x00 0xFF 0xFF 0xFF PID-0 CID-3 Released   [12-4-]
  0x65 0x00 0x05 0x01 0xFF 0xFF 0xFF PID-0 CID-5 Pressed    [12-45]
  0x65 0x00 0x02 0x00 0xFF 0xFF 0xFF PID-0 CID-2 Released   [1--45]
  0x65 0x00 0x03 0x01 0xFF 0xFF 0xFF PID-0 CID-3 Pressed    [1-345]
  0x65 0x00 0x05 0x00 0xFF 0xFF 0xFF PID-0 CID-5 Released   [1-34-]
  0x65 0x00 0x01 0x00 0xFF 0xFF 0xFF PID-0 CID-1 Released   [--34-]
  0x65 0x00 0x04 0x00 0xFF 0xFF 0xFF PID-0 CID-4 Released   [--3--]
  0x65 0x00 0x03 0x00 0xFF 0xFF 0xFF PID-0 CID-3 Released   [-----]



(2.05 MB)

Nextion PsychicA was me confirming a phenomena discovered by Gerry Kropf

   where the color of an item placed on Nextion screen was detected by Nextion.

     - regardless of the placement of the external color,

       Nextion detected and the box lights with color of the external color on top.

Gerry was the one to discover this, I only discovered it also worked with plastics

     - I used a series of colorful polymer Guitar picks as the video shows.

So if you were curious as to why I had a procedure to reorder them mid-video

    The video may make more sense with knowing what it was about.

But as you can see in the video, from none to 5 "simultaneous" component Touch 

Nextion is going to respond to every Touch Press / Release event as they occur.

Thank you Patrick.
I saw the movie and the game link.
Also the table of events was the most important to me.
I have to think twice if i put multi touch, or i create a reset button on a separate screen where you need to put a 4 digit password to access it.
Thanks for your help and effort.


I have also made 4 digit password 3.2" resistive



Multi-touch or not, Nextion is quite capable.



 general speaking

RTP can't handle multitouch, neither real nor simulated. A new touch is only triggered, when the previouse is released ... only one touch can be active ...

CTP can at least handle up to 5 parallell touchs without been blocked from the previouse. So, you can press and trigger up to 5 touch events simultanousely. The events are still fired one after the other, but you don't need to wait for a release until you can already press the next within this 5. Therefore a maximum of 5 touchs can be active. Press and Release actions can be in random order within this 5.

RTP logic will work on a CTP, but CTP logic not mandantory on a RTP ...

Thank you Gerry.
The reason for using multi touch on the old product was because we run out of push buttons.
But for the screen, i just explained to Patrick, i will make a separate screen with the WiFi reset button, protected by a 4 digits password.
So in this case, no need for multi touch.
Thank you anyway for the RTP info.


Login or Signup to post a comment