Capsense Slider with both button function and slide.

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

cross mob
Anonymous
Not applicable

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.  

0 Likes
1 Solution
Yuva
Moderator
Moderator
Moderator
250 replies posted 250 sign-ins 100 solutions authored

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.

View solution in original post

0 Likes
2 Replies
Yuva
Moderator
Moderator
Moderator
250 replies posted 250 sign-ins 100 solutions authored

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.

0 Likes
Anonymous
Not applicable

Thanks Yuva. 

   

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

   

Angu.

0 Likes