Skip to main content

Class Mcp23x0x.PinDefinitions

Pin definitions for 8 pin MCP IO expanders

Assembly: Mcp23xxx.dll
View Source
public class Mcp23x0x.PinDefinitions : IPinDefinitions, IEnumerable<IPin>, IEnumerable

Implements:
Meadow.Hardware.IPinDefinitions, System.Collections.Generic.IEnumerable<Meadow.Hardware.IPin>, System.Collections.IEnumerable

Properties

Controller

The controller for the pins

View Source
public IPinController? Controller { get; set; }

AllPins

List of pins

View Source
public IList<IPin> AllPins { get; }

GP0

Pin GP0

View Source
public IPin GP0 { get; }

GP1

Pin GP1

View Source
public IPin GP1 { get; }

GP2

Pin GP2

View Source
public IPin GP2 { get; }

GP3

Pin GP3

View Source
public IPin GP3 { get; }

GP4

Pin GP4

View Source
public IPin GP4 { get; }

GP5

Pin GP5

View Source
public IPin GP5 { get; }

GP6

Pin GP6

View Source
public IPin GP6 { get; }

GP7

Pin GP7

View Source
public IPin GP7 { get; }

Methods

InitAllPins()

Initialize all pins

View Source
protected void InitAllPins()

GetEnumerator()

Get Pins

View Source
public IEnumerator<IPin> GetEnumerator()
Returns

System.Collections.Generic.IEnumerator<Meadow.Hardware.IPin>: IEnumerator of IPin with all pins

Implements

  • Meadow.Hardware.IPinDefinitions
  • System.Collections.Generic.IEnumerable<Meadow.Hardware.IPin>
  • System.Collections.IEnumerable