slider returns to it's maximum value

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

cross mob
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
Employee
25 sign-ins First question asked First comment on blog

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
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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
Employee
25 sign-ins First question asked First comment on blog

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

0 Likes