Class PinDefinitionBase
Provides a base implementation for device pin lists.
Assembly: Meadow.Contracts.dll
View Source
Declaration
public abstract class PinDefinitionBase : IPinDefinitions, IEnumerable<IPin>, IEnumerable
Derived:
Meadow.Hardware.GroveDigitalConnector.GroveDigitalPinDefinitions
Implements:
Meadow.Hardware.IPinDefinitions, System.Collections.Generic.IEnumerable<Meadow.Hardware.IPin>
, System.Collections.IEnumerable
Properties
AllPins
Convenience property which contains all the pins available on the device.
View Source
Declaration
public virtual IList<IPin> AllPins { get; }
Controller
Gets or sets the IPinController associated with the IPins
View Source
Declaration
public IPinController? Controller { get; set; }
this[string]
Retrieves a pin from Meadow.PinDefinitionBase.AllPins by Name or Key
View Source
Declaration
public IPin this[string name] { get; }
Methods
GetEnumerator()
Returns an enumerator that iterates through the collection.
View Source
Declaration
public IEnumerator<IPin> GetEnumerator()
Returns
System.Collections.Generic.IEnumerator<Meadow.Hardware.IPin>
: An enumerator that can be used to iterate through the collection.
Implements
- Meadow.Hardware.IPinDefinitions
System.Collections.Generic.IEnumerable<Meadow.Hardware.IPin>
System.Collections.IEnumerable
Extension Methods
- System.Collections.Generic.IEnumerable{Meadow.Hardware.IPin}.Meadow.ExtensionMethods.Contains``1(Meadow.Hardware.IPin[])
- System.Collections.Generic.IEnumerable{Meadow.Hardware.IPin}.Meadow.ExtensionMethods.FirstIndexOf``1(Meadow.Hardware.IPin[])