i create simple touch projects by means of RX130 capacitive touch lab document(https://www.renesas.com/sg/en/doc/products/mpumcu/apn/rx/002/r01an4516eu0100-rx.pdf).
When i touch single button, everything is fine, however when i touch multiple button, nothing is work.Assume that when i touch 2 of them at same time, nothing is work then if i stop touching one of them, nothing is work ,then if i stop touching other one, it works.
What i missing? How multiple touch is work?
Also, i used these cards close to induction cooker. When induction cooker start run, fake button touch happened. Any advice?
You are right,sample should not mention multi-touch. But i can not find any sample about multi-touch and i think sample cover both single-touch and multi-touch? Can anybody support multi-touch document and sample code?
One more think, some button work on press and some of them work on release.
So; when i press button X(on-release type button), then i press button Y(on-realese type button). After when i release both of them sequentely, last release button work only.
The solution easily supports multi-touch. At the API layer, the function call:
returns a binary representation of the button(s) touched thru the global btn_states, where the variable is a uint_64 binary representation of the enabled channels.
In this case, since the buttons are configured as TS0 and TS1:
TSx btn_states (binary value)
I've attached below a working main() that demonstrates this capability on the RX130 Capacitive Touch kit after the buttons are tuned properly using the CMT as the trigger for touch scans.