Hi,
Well, x screen positions vary from -240 to 240.
Based on Map function from Arduino programming language, you can do something like this:
( (sliderSensorValue - 0) * (240 - (- 240)) / (100 - 0) ) + (- 240)
or
(sliderSensorValue * 480 / 100) - 240.
I uploaded a little scratch project to show this at http://scratch.mit.edu/projects/ajbarrosbr/960590.
Hope this help.
ajbn
Last edited by ajbarrosbr (2010-03-31 16:59:45)
Offline
Sorry, I dont know because i dont have one, but i want to know...
Are they worth it?
<stop all>
Offline