print("This project will use Servo Motor")
print("Date: 29/11/2023")
print('Created by AHH')
# Import all libraries for this section
import servo_library
from machine import Pin, PWM # This is important for any coding
from utime import sleep
# Pin declaration
Servo_Pin = (Pin (12, Pin.OUT))
# Create a name for module with libraries
Wukong = servo_library.Servo(pin = Servo_Pin) # Do like this for using Servo Motor
while True:
Wukong.move (45)
sleep (0.5)
Wukong.move(135)
sleep (0.5)