cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4

Anonymous
Not applicable

Hello There!

   

I've never dealt with CapSense slider widget. Now I'm trying to understand, is it normal behaviour of CapSense module or not. When I take out my finger from slider's surface the value becomes initial - 0xFF.

   

How can I prevent this? E.g. in software.

0 Likes
1 Solution
SrikanthD_56
Employee

By default, the CapSense slider widget returns Centroid position (slider value) as 0xFFFF when no touch is detected on the slider.

Below image is an excerpt from the CapSense Component datasheet:

I1.png

View solution in original post

0 Likes
3 Replies
Anonymous
Not applicable

Oh! Sorry. Forgot to say why I've posted in this topic. 

   

I use PRoC BLE module with BLE Pioneer Kit 😃

0 Likes
Bob_Marlowe
Expert II

An excerpt from the Cypress example-project for CapSense slider shows

   

 

   

    /*If finger is detected on the slider*/
    if(sliderPosition != NO_FINGER)
    {
        /* If finger position on the slider is changed then update the LED color */
        if(sliderPosition != lastPosition)
        {
where NO_FINGER is #defined as 0xffff

   

This is probably something you've missed.

   

 

   

Bob

0 Likes
SrikanthD_56
Employee

By default, the CapSense slider widget returns Centroid position (slider value) as 0xFFFF when no touch is detected on the slider.

Below image is an excerpt from the CapSense Component datasheet:

I1.png

View solution in original post

0 Likes