ArduinoBoard.SetPinMode(Int32, SupportedMode) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the internal pin mode to the given value, if supported.
public void SetPinMode(int pin, Iot.Device.Arduino.SupportedMode arduinoMode);
member this.SetPinMode : int * Iot.Device.Arduino.SupportedMode -> unit
Public Sub SetPinMode (pin As Integer, arduinoMode As SupportedMode)
Parameters
- pin
- Int32
The pin to configure
- arduinoMode
- SupportedMode
The mode to set
Exceptions
The mode was not updated, either because the command was not understood or the mode is unknown by the firmware
Remarks
This method is intended for use by ExtendedCommandHandler instances. Users should not call this method directly. It is the responsibility of the command handler to use the capabilities table to check that the mode is actually supported