void Run() { Console.WriteLine("Run..."); var servo = servoWing.GetServo(0, Meadow.Foundation.Servos.NamedServoConfigs.SG90); while (true) { Console.WriteLine("0"); servo.RotateTo(0); Thread.Sleep(1000); Console.WriteLine("45"); servo.RotateTo(45); Thread.Sleep(1000); Console.WriteLine("90"); servo.RotateTo(90); Thread.Sleep(1000); Console.WriteLine("135"); servo.RotateTo(135); Thread.Sleep(1000); } }
void Run() { var servo = _servoWing.GetServo(0, new Meadow.Foundation.Servos.ServoConfig()); while (true) { servo.RotateTo(0); Thread.Sleep(2000); servo.RotateTo(90); Thread.Sleep(2000); servo.RotateTo(180); Thread.Sleep(2000); } }