Share via


InputPort Constructor (Pin, Boolean, ResistorMode, InterruptMode)

Initializes a new instance of the InputPort class.

Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in microsoft.spot.hardware.dll)

Syntax

protected InputPort (
         PinportId,
         boolglitchFilter,
         ResistorModeresistor,
         InterruptModeinterruptMode
)

Parameters

  • portId
    The indentifier for the input port. If the port with the specified identifier is already in use, an exception is thrown.
  • glitchFilter
    true if the glitch filter is currently enabled; otherwise, false.
  • resistor
    The resistor mode that establishes a default state for the port.
  • interruptMode
    The interrupt mode that establishes the requisite conditions for the port to generate an interrupt.

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

InputPort Class
InputPort Members
Microsoft.SPOT.Hardware Namespace