Skip to main content

Interface IDigitalOutputController

Contract for IO devices that are capable of creating IDigitalOuputPort instances.

Assembly: Meadow.Contracts.dll​
View Source​
Declaration
public interface IDigitalOutputController : IPinController

Methods​

CreateDigitalOutputPort(IPin, bool, OutputType)​

Creates an IDigitalOutputPort on the specified pin.

View Source​
Declaration
IDigitalOutputPort CreateDigitalOutputPort(IPin pin, bool initialState = false, OutputType initialOutputType = OutputType.PushPull)
Returns​

Meadow.Hardware.IDigitalOutputPort

Parameters​
TypeNameDescription
Meadow.Hardware.IPinpinThe pin on which to create the port.
System.BooleaninitialStateThe default initial state of the port,
either LOW (false), or HIGH (true).
Meadow.Hardware.OutputTypeinitialOutputTypeWhether the port is initially configured
as PushPull or OpenDrain. PushPull by default.