Port Constructor (Pin, Boolean, ResistorMode, InterruptMode)
Initializes a new instance of the Port class.
Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in microsoft.spot.hardware.dll)
Syntax
[MethodImplAttribute]
protected Port (
Pin portId,
bool glitchFilter,
ResistorMode resistor,
InterruptMode interruptMode
)
Parameters
- portId
The indentifier (ID) for the port. If the port with the specified ID is already in use, an exception is thrown. - glitchFilter
true if the glitch filter is 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 the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.