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
Type | Name | Description |
---|---|---|
Meadow.Hardware.IPin | pin | Pin. |
Meadow.Hardware.IMeadowIOController | ioController | The IO controller responsible for creating the port. |
System.Boolean | initialState | If set to true initial state. |
Meadow.Hardware.OutputType | initialOutputType | The initial port output type. |
Dispose(bool)
Releases the resources used by the port.
View Source
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | A boolean value indicating whether the port is being disposed. |
~DigitalOutputPort()
Finalizes the Port instance
View Source
protected ~DigitalOutputPort()