Skip to main content

Class DigitalOutputPort

Represents a port that is capable of writing analog output.

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

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

Implements:
Meadow.Hardware.IDigitalOutputPort, Meadow.Hardware.IDigitalPort, Meadow.Hardware.IPort<C>, System.IDisposable

Properties

IOController

Gets or sets the port's IOController

View Source
protected IMeadowIOController IOController { get; }

State

Gets or sets the state of the port.

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

Methods

From(IPin, IMeadowIOController, bool, OutputType)

From the specified pin and initialState.

View Source
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
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
protected ~DigitalOutputPort()

Implements