The general community can’t respond to your question in the Easy C technical support forum so I copied it here.
I assume you would also like to press a button and have the servo return to a previous position? If you just want simple open / close behavior and can dedicate 2 digital buttons to the task here’s a screen capture of a (untested) simple way to set that up in Easy C 4
[ATTACH]7643[/ATTACH]
within the main program loop of this example the state of digital buttons 5 up and 5 down are retrieved into the variables open and close. if open equals one, then the variable servoValue is set to 127 (you can changes that to any value that works for your robot from -127 to 127) You can also change the joystick digital input to suite your needs.
The SetServo block at the end will command the servo to the value in the variable servoValue.
If you need more positions you could use more buttons and extend the elsif, or you could try another scheme altogether.
I hope this helps.
Cheers Kb