from servo import Servo
import time
# Create a Servo object, assigning the GPIO pin connected to the servo's signal wire
sg90_servo = Servo(pin_id=0) # Replace 0 with your chosen GPIO pin
sg90_servo.move(0) # Move to 0 degrees
time.sleep(1)
sg90_servo.move(90) # Move to 90 degrees
time.sleep(1)
sg90_servo.move(180) # Move to 180 degrees
time.sleep(1)