From 71f15f86ae3e16783ae11aa01a0ef5360b7280ae Mon Sep 17 00:00:00 2001 From: Mikhail Kanygin Date: Fri, 16 Dec 2016 22:39:16 +0600 Subject: [PATCH] Added overload ctor for GpioConnectionSettings for cases when user want to set driver manually. --- .../GpioConnectionSettings.cs | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Raspberry.IO.GeneralPurpose/GpioConnectionSettings.cs b/Raspberry.IO.GeneralPurpose/GpioConnectionSettings.cs index a44bc13..46754ef 100644 --- a/Raspberry.IO.GeneralPurpose/GpioConnectionSettings.cs +++ b/Raspberry.IO.GeneralPurpose/GpioConnectionSettings.cs @@ -28,8 +28,18 @@ public class GpioConnectionSettings /// Initializes a new instance of the class. /// public GpioConnectionSettings() + : this(DefaultDriver) { - Driver = DefaultDriver; + } + + /// + /// Initializes a new instance of the class + /// with the specified + /// + /// Driver you want to work through. + public GpioConnectionSettings(IGpioConnectionDriver driver) + { + Driver = driver; BlinkDuration = DefaultBlinkDuration; PollInterval = DefaultPollInterval; Opened = true; pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy