Class Sc16is7x2.DigitalInputPort
Represents an SC16IS7x2 digital input port Mostly copied from the MCP23xxx implementation
Assembly: Sc16is7x2.dll
View Source
Declaration
public class Sc16is7x2.DigitalInputPort : DigitalInputPortBase, IDigitalInputPort, IDigitalPort, IPort<IDigitalChannelInfo>, IDisposable
Inheritance: System.Object
-> Meadow.Hardware.PortBase<Meadow.Hardware.IDigitalChannelInfo>
-> Meadow.Hardware.DigitalPortBase
-> Meadow.Hardware.DigitalInputPortBase
Implements:
Meadow.Hardware.IDigitalInputPort
, Meadow.Hardware.IDigitalPort
, Meadow.Hardware.IPort<Meadow.Hardware.IDigitalChannelInfo>
, System.IDisposable
Properties
State
Gets the current state of the port
View Source
Declaration
public override bool State { get; }
Resistor
Gets or sets the internal resistor mode of the port
View Source
Declaration
public override ResistorMode Resistor { get; set; }
Events
StateChanged
Event to be raised whenever the port state changes.
View Source
Declaration
public event Sc16is7x2.DigitalInputPort.StateChangedHandler? StateChanged
Event Type
Meadow.Foundation.ICs.IOExpanders.Sc16is7x2.DigitalInputPort.StateChangedHandler
Implements
Meadow.Hardware.IDigitalInputPort
Meadow.Hardware.IDigitalPort
Meadow.Hardware.IPort<Meadow.Hardware.IDigitalChannelInfo>
System.IDisposable