Share via


GpioPin.Read Method

Definition

Reads the current value of the general-purpose I/O (GPIO) pin.

public:
 virtual GpioPinValue Read() = Read;
GpioPinValue Read();
public GpioPinValue Read();
function read()
Public Function Read () As GpioPinValue

Returns

The current value of the GPIO pin. If the pin is configured as an output, this value is the last value written to the pin.

Windows requirements

App capabilities
lowLevel

Applies to

See also