Port Constructor (Pin, Boolean, Boolean, ResistorMode)
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 initialState,
bool glitchFilter,
ResistorMode resistor
)
Parameters
- portId
The indentifier (ID) for the port. If the port with the specified ID is already in use, an exception is thrown. - initialState
The initial value (either 0 or 1) to which the constructor sets the port. - glitchFilter
true if the glitch filter is enabled; otherwise, false. - resistor
The resistor mode that establishes a default state for the port.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.