Skip to main content

Class Pca9671.DigitalInputPort

A Pca9671-specific implementation of the IInputPort

Assembly: Pca9671.dll
View Source
Declaration
public class Pca9671.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

Peripheral

The port's containing Pca9671

View Source
Declaration
public Pca9671 Peripheral { get; }

Resistor

Gets or sets the internal resistor mode of the port

View Source
Declaration
public override ResistorMode Resistor { get; set; }

State

Gets the current state of the port

View Source
Declaration
public override bool State { get; }

Methods

Dispose(bool)

Releases the resources used by the port.

View Source
Declaration
protected override void Dispose(bool disposing)
Parameters
TypeNameDescription
System.BooleandisposingA boolean value indicating whether the port is being disposed.

Implements

  • Meadow.Hardware.IDigitalInputPort
  • Meadow.Hardware.IDigitalPort
  • Meadow.Hardware.IPort<Meadow.Hardware.IDigitalChannelInfo>
  • System.IDisposable