You are here

Capsense Slider with both button function and slide. | Cypress Semiconductor

Capsense Slider with both button function and slide.

Summary: 2 Replies, Latest post by angu0079_1899406 on 04 Oct 2016 05:52 AM PDT
Verified Answers: 1
Last post
Log in to post new comments.
angu0079_1899406's picture
User
2 posts

Hey somebody out there...

I have a question about the Capsense slider.
Is it possible to make it have to functions at the same time? 
I done the tutorials and the best example is the video nr. 13 but is only one function there.  http://www.cypress.com/training/psoc-101-video-tutorial-series-how-use-arm-cortex-m0-based-psoc-4 

The functions that i like to have is:

1) Turn the volume op and down on my phone.
2) doublet tap on the slider to make a Pause/Play for music.

The nr. 1 volume part is done, I already made it. But the next step is the tricky part.  

yuva's picture
Cypress Employee
34 posts

Hi,

You can try using CapSense Gesture component to do this purpose. You have to use trackpad widget with 1x7 elements and deal with only x/y co-ordinate to do the gesture. The details of the gesture component is available in the following link.

http://www.cypress.com/file/137391/download

If you prefer to use the same component then you should use some timer and see if two tap occurs within a timeout period.

Thanks,

Yuva.

angu0079_1899406's picture
User
2 posts

Thanks Yuva. 

I will look into that and see what i can do.

Angu.

Log in to post new comments.