OutputPort 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 OutputPort class.
Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in Microsoft.SPOT.Hardware.dll)
Syntax
'Declaration
Public Sub New ( _
portId As Cpu.Pin, _
initialState As Boolean _
)
public OutputPort(
Cpu.Pin portId,
bool initialState
)
public:
OutputPort(
Cpu::Pin portId,
bool initialState
)
new :
portId:Cpu.Pin *
initialState:bool -> OutputPort
public function OutputPort(
portId : Cpu..::..Pin,
initialState : boolean
)
Parameters
- portId
Type: Microsoft.SPOT.Hardware. . :: . .Cpu. . :: . .Pin
The identifier for the output port. If the port with the specified identifier is already in use, an exception is thrown.
- initialState
Type: System. . :: . .Boolean
The initial state forced on the output port when it was constructed.
.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.