Port Constructor (Cpu.Pin, Boolean)
[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 Port class with the specified port identifier and initial state.
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 _
)
protected Port(
Cpu.Pin portId,
bool initialState
)
protected:
Port(
Cpu::Pin portId,
bool initialState
)
new :
portId:Cpu.Pin *
initialState:bool -> Port
protected function Port(
portId : Cpu..::..Pin,
initialState : boolean
)
Parameters
- portId
Type: Microsoft.SPOT.Hardware. . :: . .Cpu. . :: . .Pin
The identifier (ID) for the port. If the port with the specified ID is already in use, an exception is thrown.
- initialState
Type: System. . :: . .Boolean
The initial value to which the constructor sets 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.