This content has been marked as final. Show 2 replies
Slider API calculates centroid and based on that it decides position of finger on slider.
The thumb rule is your finger should cover three silder segments.
I believe if you want to turn OFF on last segment only, you need to use one extra IO to sense this last segment.
The concept is pretty good. For implementing this you can check the slider and if the slider centroid is returning the value as maximum, in that case you can switch the slider OFF and Enable the Individual sensor and scan them sequentially. Based on the counts obtained from the last and the neighboring sensor you can decide whether is it only the last sensor or the thumb has some affect on the neighboring sensors as well.
Then it decides on your logic that when do you want to turn it OFF.