Thanks for your help,
Unfortaunately I still cant get it work, something silly I’m doing I’m sure!
When I attach the button the slide pot doesnt work and when I attach the slide pot the button doesnt work.
I’ve attached a pull up resistor on channel 0 for the switch and the variable pot on channel 1
My code is:
0 get_position #get the value of the input on channel 0
500 less_than if #if it is less than 500 (i.e. the button is pushed)
4000 5 servo #move the servo on channel 5 to 1000us
else #if the button is not pressed
# Sets servo 5 to a position based on an analog input.
1 get_position # get the value of the pot, 0-1023
4 times 4000 plus # scale it to 4000-8092, approximately 1-2 ms
5 servo # set servo 5 based to the value
Would appeciate any help thanks,