Servo programming

hey thanks the code that you posted does the opposite that i want in relation to button , in your code if the button is unpressed the servo does what i want , and when pressed it stops, and i wanted for the servo to move when pressed and to stop when unpressed but i think i can change the code to do what i want

after this works i want to add a second button that as the same behavior but changes the direction of the rotation of the servo

thanks :slight_smile: