Let servo to rotate to some certain degree
pin: int. the PWM pin which is attached by the servo
angle: int. the rotate angle (0-180)
status: boolean. if succeeds, output true.
Let servo stop sweeping
pin: int. the PWM pin which is attached by the servo
trigger: Any. Whenever it comes, stop the servo.
status: boolean. if succeeds, output true.
Let servo start sweeping
pin: int. the PWM pin which is attached by the servo
trigger: Any. Whenever it comes, sweep the servo.
status: boolean. if succeeds, output true.