In my Servo Test program I would like to change the range for the SLIDER...
slider Servo,LL,RL
full test program...
cls
let pinNo = 2
let Servo = 0
let LL = 0
let RL = 180
wprint "Control PIN "
textbox pinNo
html "<BR>"
wprint "Left Limit = "
textbox LL
html "<BR>"
wprint "Right Limit = "
textbox RL
html "<BR>"
html "<BR>"
wprint " Servo Now = "
textbox Servo
button " Set Servo",[SetServo]
slider Servo,LL,RL
'timer 200,[SetServo]
html "<BR>"
html "<BR>"
button " Exit ", [TestExit]
wait
[SetServo]
io(servo,pinNo,Servo)
wait
[TestExit]
io(servo,pinNo,0)
end
In my test code above I am trying to accomplish this by utilizing text boxes but it does not have the desired effect.
However the text box that allows me to choose the output pin does work as expected.
Can anyone help me to understand how to change the limits of the SLIDER function within my program?
Either with the TEXTBOX or some other way.
thanks in advance
dwight