GpioController Constructors

Definition

Overloads

GpioController()

Initializes a new instance of the GpioController class that will use the logical pin numbering scheme as default.

GpioController(PinNumberingScheme)

Initializes a new instance of the GpioController class that will use the specified numbering scheme. The controller will default to use the driver that best applies given the platform the program is executing on.

GpioController(PinNumberingScheme, GpioDriver)

Initializes a new instance of the GpioController class that will use the specified numbering scheme and driver.

GpioController()

Initializes a new instance of the GpioController class that will use the logical pin numbering scheme as default.

C#
public GpioController ();

Applies to

.NET IoT Libraries 2.2.0 and other versions
Product Versions
.NET IoT Libraries 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0

GpioController(PinNumberingScheme)

Initializes a new instance of the GpioController class that will use the specified numbering scheme. The controller will default to use the driver that best applies given the platform the program is executing on.

C#
public GpioController (System.Device.Gpio.PinNumberingScheme numberingScheme);

Parameters

numberingScheme
PinNumberingScheme

The numbering scheme used to represent pins provided by the controller.

Applies to

.NET IoT Libraries 2.2.0 and other versions
Product Versions
.NET IoT Libraries 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0

GpioController(PinNumberingScheme, GpioDriver)

Initializes a new instance of the GpioController class that will use the specified numbering scheme and driver.

C#
public GpioController (System.Device.Gpio.PinNumberingScheme numberingScheme, System.Device.Gpio.GpioDriver driver);

Parameters

numberingScheme
PinNumberingScheme

The numbering scheme used to represent pins provided by the controller.

driver
GpioDriver

The driver that manages all of the pin operations for the controller.

Applies to

.NET IoT Libraries 2.2.0 and other versions
Product Versions
.NET IoT Libraries 1.0.0, 1.1.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 2.0.0, 2.1.0, 2.2.0