Control servo using button

hi,
i want to control my servo using pushbutton, but i’ve a problem with the code. anyone help me please ?? thanks

sure! just paste your code here using “```cpp” in the beginning and “`` `” in the end.
and we will try to help you.

thing["Servo_Button"]<<[](pson in){
myservo.write(in?180:0);
}