Share via


IGpioControllerProvider.OpenPinProvider Method

Definition

Opens and returns the general-purpose I/O (GPIO) pin provider for a specific pin.

public:
 IGpioPinProvider ^ OpenPinProvider(int pin, ProviderGpioSharingMode sharingMode);
IGpioPinProvider OpenPinProvider(int const& pin, ProviderGpioSharingMode const& sharingMode);
public IGpioPinProvider OpenPinProvider(int pin, ProviderGpioSharingMode sharingMode);
function openPinProvider(pin, sharingMode)
Public Function OpenPinProvider (pin As Integer, sharingMode As ProviderGpioSharingMode) As IGpioPinProvider

Parameters

pin
Int32

int

The desired GPIO pin number.

sharingMode
ProviderGpioSharingMode

The sharing mode to open the pin as.

Returns

The GPIO pin provider for the specified pin.

Applies to