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.
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)
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 [-----]
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.
I have also made 4 digit password 3.2" resistive
Multi-touch or not, Nextion is quite capable.
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 ...