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;