How to program a servo with two buttons

Hello, I would like to program a servo with two buttons as if a barrier of a parking lot, someone can help me? Thank you!

Is that, one button moves the servo to one extreme and the other button moves it to the other extreme ?

Do you know how to read an input ? How are the buttons wired ? Have you experimented with the Servo examples in the IDE ? Can you make a servo move to its end position ? How is the servo powered ?

Cross-post

Thread locked.

DO NOT CROSS-POST, CROSS-POSTING WASTES TIME.