ArduinoBoard.GetPinMode(Int32) Method

Definition

Returns the current assignment of the given pin

C#
public Iot.Device.Arduino.SupportedMode GetPinMode (int pinNumber);

Parameters

pinNumber
Int32

Pin number to query

Returns

An instance of SupportedMode from the list of known modes (or a new instance for an unknown mode)

Remarks

Thi is the opposite of SetPinMode(Int32, SupportedMode). See there for usage limitations.

Applies to

Tuote Versiot
.NET IoT Libraries 2.0.0, 2.1.0, 2.2.0