TristatePort Constructor

[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 TristatePort 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, _
    glitchFilter As Boolean, _
    resistor As Port.ResistorMode _
)
public TristatePort(
    Cpu.Pin portId,
    bool initialState,
    bool glitchFilter,
    Port.ResistorMode resistor
)
public:
TristatePort(
    Cpu::Pin portId, 
    bool initialState, 
    bool glitchFilter, 
    Port::ResistorMode resistor
)
new : 
        portId:Cpu.Pin * 
        initialState:bool * 
        glitchFilter:bool * 
        resistor:Port.ResistorMode -> TristatePort
public function TristatePort(
    portId : Cpu..::..Pin, 
    initialState : boolean, 
    glitchFilter : boolean, 
    resistor : Port..::..ResistorMode
)

Parameters

  • initialState
    Type: System. . :: . .Boolean
    The initial value forced on the tristate port when it is created; this value becomes effective as soon as the port is enabled as an output port.
  • glitchFilter
    Type: System. . :: . .Boolean
    A value that indicates the state of the glitch filter. If true, the glitch filter is enabled; if false, the glitch filter is disabled.

Remarks

A tristate port is initially an input port.

.NET Framework Security

See Also

Reference

TristatePort Class

Microsoft.SPOT.Hardware Namespace