Page 1 of 1

Touch Wheel - But clockwise

Posted: Fri Aug 02, 2019 9:30 am
by alistair.monaghan
Hi there, the data from my Phidget touch wheel defaults to anti-clockwise actions - is there a way to make it clockwise?

Thanks in advance
Al

Re: Touch Wheel - But clockwise

Posted: Fri Aug 02, 2019 12:28 pm
by jdecoux
You can make it clockwise by applying some simple math to the touch value:

Code: Select all

clockwiseValue = (touchValue *  -1) + 1

Re: Touch Wheel - But clockwise

Posted: Tue Aug 06, 2019 2:39 am
by alistair.monaghan
Thanks, where would this need to go?

Re: Touch Wheel - But clockwise

Posted: Tue Aug 06, 2019 10:08 am
by jdecoux
Anywhere in your code where you are getting the touch value from the capacitive touch wheel. Just apply the equation to the reading before you use it, and then use the result in place of the raw touch value.