Skip to main content

Interface IDigitalInputController

Contract for IO devices that are capable of creating an IDigitalInputPort instances.

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

Methods

CreateDigitalInputPort(IPin, ResistorMode)

Creates an IDigitalInputPort on the specified pin.

View Source
Declaration
IDigitalInputPort CreateDigitalInputPort(IPin pin, ResistorMode resistorMode)
Returns

Meadow.Hardware.IDigitalInputPort

Parameters
TypeNameDescription
Meadow.Hardware.IPinpinThe pin on which to create the port.
Meadow.Hardware.ResistorModeresistorModeThe ResistorMode specifying whether an
external pull-up/pull-down resistor is used, or an internal pull-up/pull-down
resistor should be configured for default state. |

CreateDigitalInputPort(IPin)

Creates an IDigitalInputPort on the specified pin with Disabled resistor mode

View Source
Declaration
IDigitalInputPort CreateDigitalInputPort(IPin pin)
Returns

Meadow.Hardware.IDigitalInputPort

Parameters
TypeNameDescription
Meadow.Hardware.IPinpinThe pin on which to create the port.