private static void ExerciseMotor(KinectMotor motor, sbyte pos) { motor.SetLED(KinectLEDStatus.AlternateRedYellow); motor.SetTilt(pos); Thread.Sleep(TimeSpan.FromSeconds(2)); motor.SetLED(KinectLEDStatus.Green); }
private static void ExerciseMotor() { KinectMotor motor = new KinectMotor(); motor.SetTilt(50); motor.SetLED(KinectLEDStatus.Red); Thread.Sleep(TimeSpan.FromSeconds(2)); motor.SetTilt(255); motor.SetLED(KinectLEDStatus.BlinkingYellow); Thread.Sleep(TimeSpan.FromSeconds(2)); motor.SetTilt(128); motor.SetLED(KinectLEDStatus.AlternateRedGreen); Thread.Sleep(TimeSpan.FromSeconds(2)); motor.SetLED(KinectLEDStatus.Green); }