Skip to main content

Class DigitalOutputPort

Represents a port that is capable of writing analog output.

Assembly: Meadow.dll​
View Source​
Declaration
public class DigitalOutputPort : DigitalOutputPortBase, IDigitalOutputPort, IDigitalPort, IPort<IDigitalChannelInfo>, IDisposable

Inheritance: System.Object -> Meadow.Hardware.PortBase<C>

Implements:
Meadow.Hardware.IDigitalOutputPort, System.IDisposable

Properties​

IOController​

Gets or sets the port's IOController

View Source​
Declaration
protected IMeadowIOController IOController { get; }

State​

Gets or sets the state of the port.

View Source​
Declaration
public override bool State { get; set; }

Methods​

From(IPin, IMeadowIOController, bool, OutputType)​

From the specified pin and initialState.

View Source​
Declaration
public static DigitalOutputPort From(IPin pin, IMeadowIOController ioController, bool initialState = false, OutputType initialOutputType = OutputType.PushPull)
Returns​

Meadow.Hardware.DigitalOutputPort: The from.

Parameters​
TypeNameDescription
Meadow.Hardware.IPinpinPin.
Meadow.Hardware.IMeadowIOControllerioControllerThe IO controller responsible for creating the port.
System.BooleaninitialStateIf set to true initial state.
Meadow.Hardware.OutputTypeinitialOutputTypeThe initial port output type.

Dispose(bool)​

Releases the resources used by the port.

View Source​
Declaration
protected override void Dispose(bool disposing)
Parameters​
TypeNameDescription
System.BooleandisposingA boolean value indicating whether the port is being disposed.

~DigitalOutputPort()​

Finalizes the Port instance

View Source​
Declaration
protected ~DigitalOutputPort()

Implements​