Here is some example code for moving a servo back and forth: learn.birdbraintechnologies.com/hummingbirdbit/makecode/program/6-6 The angles you set the servo to might be different based on your robot - in the example it moves from 90 to 180 degrees and back.