IGpioControllerProvider IGpioControllerProvider IGpioControllerProvider IGpioControllerProvider Interface

Definition

Represents the actions common to all general-purpose I/O (GPIO) controllers.

public : interface IGpioControllerProviderpublic interface IGpioControllerProviderPublic Interface IGpioControllerProvider// You can use this interface in JavaScript.
Attributes
Windows 10 requirements
Device family
Windows IoT Extension SDK (introduced v10.0.10586.0) Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Devices.DevicesLowLevelContract (introduced v2)

Properties

PinCount PinCount PinCount PinCount

Gets the number of general-purpose I/O (GPIO) pins available.

public : int PinCount { get; }public int PinCount { get; }Public ReadOnly Property PinCount As int// You can use this property in JavaScript.
Value
int int int int

The number of GPIO pins available.

Methods

OpenPinProvider(Int32, ProviderGpioSharingMode) OpenPinProvider(Int32, ProviderGpioSharingMode) OpenPinProvider(Int32, ProviderGpioSharingMode) OpenPinProvider(Int32, ProviderGpioSharingMode)

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

public : IGpioPinProvider OpenPinProvider(int pin, ProviderGpioSharingMode sharingMode)public IGpioPinProvider OpenPinProvider(Int32 pin, ProviderGpioSharingMode sharingMode)Public Function OpenPinProvider(pin As Int32, sharingMode As ProviderGpioSharingMode) As IGpioPinProvider// You can use this method in JavaScript.
Parameters
pin
int Int32 Int32 Int32

The desired GPIO pin number.

Returns

The GPIO pin provider for the specified pin.