Share via


TristatePort Constructor

Initializes a new instance of the TristatePort class.

Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in microsoft.spot.hardware.dll)

Syntax

public TristatePort (
         Pin portId,
         bool initialState,
         bool glitchFilter,
         ResistorMode resistor
)

Parameters

  • portId
    The indentifier (ID) for the tristate port. If the port with the specified ID is already in use, an exception is thrown.
  • initialState
    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
    A Boolean value that indicates the state of the glitch filter. If true, the glitch filter is enabled; if false, the glitch filter is disabled.
  • resistor
    The resistor mode that establishes a default state for the port.

Remarks

A tristate port is initially an input port.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

TristatePort Class
TristatePort Members
Microsoft.SPOT.Hardware Namespace