Example Projects
CY8CKIT-044 PSoC® 4 M-Series Pioneer Kit Guide, Doc. No. 001-96598 Rev. *C
30
4.6 Touch Gestures
4.6.1 Project Description
This example project demonstrates the touch gesture recognition capability of the PSoC 4200M device using the CapSense
Gesture Pad. This Gesture Pad has five buttons arranged similar to a joystick.
Figure 4-10
shows the CapSense Gesture
Pad on the PSoC 4 M-Series Pioneer Kit.
Figure 4-10. CapSense Button Pattern
1
4
3
5
2
The project gangs all the five CapSense elements of the Gesture Pad and scans them together as a single proximity sensor
every 100ms by default. When the ganged proximity sensor detects an approaching finger, PSoC 4200M turns on the RGB
LED and decreases the scanning interval to 10ms. When a finger touch is detected, the firmware tries to recognize if the
finger has performed any touch gestures. The PSoC 4200M changes the color of onboard RGB LED in different patterns
depending on the detected gestures.
Table 4-2
shows the different gestures recognized by the firmware and the
corresponding output action for each gesture.
Table 4-2. CapSense Touch Gestures
Gesture Name
Gesture Example
Action
Swipe Clockwise
4
3
1
5
2
Violet > Indigo > Blue > Green > Yellow >
Orange > Red > Violet
Swipe Counter-clockwise
4
3
1
5
2
Red > Orange > Yellow > Green > Blue >
Indigo > Violet > Red
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from