servo Button program

Hi people am really new to Arduino but i have used alot of the tutorials for testing ect am stuck on button system done the on and off with the leds seen videos on servos hold the button in it will turn am trying to work out the full code for if you press the button once it will go 720 then press it again will go back to 0 as the servos i got can turn without stoping if you could help me with this iusse be ever greatfull :slight_smile:

flametalon:
Hi people am really new to Arduino but i have used alot of the tutorials for testing ect am stuck on button system done the on and off with the leds seen videos on servos hold the button in it will turn am trying to work out the full code for if you press the button once it will go 720 then press it again will go back to 0 as the servos i got can turn without stoping if you could help me with this iusse be ever greatfull :slight_smile:

If your servos are 'continuous-rotation' servos, there's no way to make them turn exactly 720 degrees. Using the "Servo" library, the values passed to 'write()' determine speed and direction, but not position.
0 = full speed in one direction, 180 = full speed in the other direction, ~90 = stop.