InputPort Constructor (Cpu.Pin, Boolean, Boolean, Port.ResistorMode)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Initializes a new instance of the InputPort class with the specified port identifier, initial state, glitch filter, and resistor mode.
Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in Microsoft.SPOT.Hardware.dll)
Syntax
'Declaration
Protected Sub New ( _
portId As Cpu.Pin, _
initialState As Boolean, _
glitchFilter As Boolean, _
resistor As Port.ResistorMode _
)
protected InputPort(
Cpu.Pin portId,
bool initialState,
bool glitchFilter,
Port.ResistorMode resistor
)
protected:
InputPort(
Cpu::Pin portId,
bool initialState,
bool glitchFilter,
Port::ResistorMode resistor
)
new :
portId:Cpu.Pin *
initialState:bool *
glitchFilter:bool *
resistor:Port.ResistorMode -> InputPort
protected function InputPort(
portId : Cpu..::..Pin,
initialState : boolean,
glitchFilter : boolean,
resistor : Port..::..ResistorMode
)
Parameters
- portId
Type: Microsoft.SPOT.Hardware. . :: . .Cpu. . :: . .Pin
The identifier for the input port. If the port with the specified identifier is already in use, an exception is thrown.
- initialState
Type: System. . :: . .Boolean
The initial value forced on the InputPort object when it was constructed.
- glitchFilter
Type: System. . :: . .Boolean
true if the glitch filter is currently enabled; otherwise, false.
- resistor
Type: Microsoft.SPOT.Hardware. . :: . .Port. . :: . .ResistorMode
The resistor mode that establishes a default state for the port.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.