public ServoDriver(GpioPin servoPin, ServoPulseModel servoPulseModel) { _servoPin = servoPin; _servoPin.SetDriveMode(GpioPinDriveMode.Output); _servoPulseModel = servoPulseModel; _servoBackgroundTask = Windows.System.Threading.ThreadPool.RunAsync(this.ServoBackgrounTask, Windows.System.Threading.WorkItemPriority.High); }
public ServoDriver(int servoPin, ServoPulseModel servoPulseModel) : this(GpioController.GetDefault().OpenPin(servoPin),servoPulseModel) { }