Interface IDigitalInputController
Contract for IO devices that are capable of creating an IDigitalInputPort
instances.
Assembly: Meadow.Contracts.dll
View Source
public interface IDigitalInputController : IPinController
Methods
CreateDigitalInputPort(IPin, ResistorMode)
Creates an IDigitalInputPort on the specified pin.
View Source
IDigitalInputPort CreateDigitalInputPort(IPin pin, ResistorMode resistorMode)
Returns
Meadow.Hardware.IDigitalInputPort
Parameters
Type | Name | Description |
---|---|---|
Meadow.Hardware.IPin | pin | The pin on which to create the port. |
Meadow.Hardware.ResistorMode | resistorMode | The 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
IDigitalInputPort CreateDigitalInputPort(IPin pin)
Returns
Meadow.Hardware.IDigitalInputPort
Parameters
Type | Name | Description |
---|---|---|
Meadow.Hardware.IPin | pin | The pin on which to create the port. |