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