1 servo and 1 push button

hello every one
i m a new user

from the morning and i'm trying to make the servo be controlled by the push button
but i failed .. i ve read different suggestions for code but without success.

the servo turn right and left and i cannot control it

So please i need ur help
the code is attached with this msg

any help :frowning:

servo & PButton.ino (1.59 KB)

Code pdf

servo.pdf (60.4 KB)

Please include your code in your post using the code button </> so it looks like this and is easy to copy to a text editor.

if it is too long please add your .ino file as an attachment

Please also tell us what your program actually does and what you want it to do.

...R