About PSoC CapSense two-finger gesture

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
hiyac_351831
Level 3
Level 3
25 replies posted 10 replies posted 10 questions asked

I refered to this thread.
https://community.cypress.com/thread/34103

I want a sample software about CapSense two-finger gesture in PSoC4 and PSoC6.

About two-finger geesture, I checked conponent datasheet of PSoC4 CapSense, at see page 43, 44.
http://www.cypress.com/file/420216/download

Question:
Could you tell me have any two-finger gesture sample software?

0 Likes
1 Solution

Hello,

You can find a PSoC 6 gesture example here:

http://www.cypress.com/documentation/code-examples/ce218136-psoc-6-mcu-e-ink-display-capsense-rtos

Although it uses a slider with one-finger gestures, the firmware flow is similar. See touch_task.c  source file for details.

Regards

Nidhin

View solution in original post

0 Likes
3 Replies
ShanmathiN_06
Employee
Employee
100 replies posted 50 replies posted 25 replies posted

Hi,

You can refer to http://www.cypress.com/documentation/code-examples/ce216892-usb-hid-trackpad for PSoC 4 trackpad.

To implement two-finger gestures, refer to section gestures tab in the component datasheet. You can also refer to the following APIs.

You can call CapSense_IncrementGestureTimeStamp() in a Systick callback function (that gets executed every 1 ms). Also set a flag in this function.

After scanning and processing of widgets are completed, call CapSense_DecodeWidgetGestures() to decode the detected gesture, only if the flag is set. This is to ensure that CapSense_IncrementGestureTimeStamp() is called prior to decoding the detected widget gestures.

You can refer to SysTick_Example, by navigating to PSoC Creator-> Code example, for the use of SysTick timer.

Thanks,
Shanmathi

0 Likes

Hello Shanmathi,

Thank you for your information about PSoC4S sample firmware.

does exist PSoC 6 sample firmware?

Best Regards.

0 Likes

Hello,

You can find a PSoC 6 gesture example here:

http://www.cypress.com/documentation/code-examples/ce218136-psoc-6-mcu-e-ink-display-capsense-rtos

Although it uses a slider with one-finger gestures, the firmware flow is similar. See touch_task.c  source file for details.

Regards

Nidhin

0 Likes