TristatePort Constructor

Windows Automotive 5.0/5.5
Initializes a new instance of the TristatePort class.

Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in

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


The indentifier (ID) for the tristate port. If the port with the specified ID is already in use, an exception is thrown.
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.
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.
The resistor mode that establishes a default state for the port.

A tristate port is initially an input port.

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

Community Additions